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