class Throw_
Hierarchy
- class \PhpParser\Node\Expr\Throw_ extends \Node\Expr
Expanded class hierarchy of Throw_
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ Throw_.php, line 7
Namespace
PhpParser\Node\ExprView source
class Throw_ extends Node\Expr {
/** @var Node\Expr Expression */
public Node\Expr $expr;
/**
* Constructs a throw expression node.
*
* @param Node\Expr $expr Expression
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(Node\Expr $expr, array $attributes = []) {
$this->attributes = $attributes;
$this->expr = $expr;
}
public function getSubNodeNames() : array {
return [
'expr',
];
}
public function getType() : string {
return 'Expr_Throw';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Throw_::$expr | public | property | @var Node\Expr Expression |
Throw_::getSubNodeNames | public | function | |
Throw_::getType | public | function | |
Throw_::__construct | public | function | Constructs a throw expression node. |