class Exit_
Hierarchy
- class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
Expanded class hierarchy of Exit_
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ Exit_.php, line 7
Namespace
PhpParser\Node\ExprView source
class Exit_ extends Expr {
/* For use in "kind" attribute */
public const KIND_EXIT = 1;
public const KIND_DIE = 2;
/** @var null|Expr Expression */
public ?Expr $expr;
/**
* Constructs an exit() node.
*
* @param null|Expr $expr Expression
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(?Expr $expr = null, array $attributes = []) {
$this->attributes = $attributes;
$this->expr = $expr;
}
public function getSubNodeNames() : array {
return [
'expr',
];
}
public function getType() : string {
return 'Expr_Exit';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Exit_::$expr | public | property | @var null|Expr Expression |
Exit_::getSubNodeNames | public | function | |
Exit_::getType | public | function | |
Exit_::KIND_DIE | public | constant | |
Exit_::KIND_EXIT | public | constant | |
Exit_::__construct | public | function | Constructs an exit() node. |