f8ff6aa3833051dda4a7c1bc5f1ef06cb67776d7
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / Stmt / Throw_.php
1 <?php
2
3 namespace PhpParser\Node\Stmt;
4
5 use PhpParser\Node;
6
7 class Throw_ extends Node\Stmt
8 {
9     /** @var Node\Expr Expression */
10     public $expr;
11
12     /**
13      * Constructs a throw node.
14      *
15      * @param Node\Expr $expr       Expression
16      * @param array     $attributes Additional attributes
17      */
18     public function __construct(Node\Expr $expr, array $attributes = array()) {
19         parent::__construct($attributes);
20         $this->expr = $expr;
21     }
22
23     public function getSubNodeNames() {
24         return array('expr');
25     }
26 }