Lines Matching refs:Node
3 namespace PhpParser\Node\Stmt;
5 use PhpParser\Node; alias
6 use PhpParser\Node\AttributeGroup;
8 class EnumCase extends Node\Stmt {
9 /** @var Node\Identifier Enum case name */
10 public Node\Identifier $name;
11 /** @var Node\Expr|null Enum case expression */
12 public ?Node\Expr $expr;
13 /** @var Node\AttributeGroup[] PHP attribute groups */
17 * @param string|Node\Identifier $name Enum case name
18 * @param Node\Expr|null $expr Enum case expression
22 …public function __construct($name, ?Node\Expr $expr = null, array $attrGroups = [], array $attribu…
24 $this->name = \is_string($name) ? new Node\Identifier($name) : $name;