function ClassConst::__construct
Same name in this branch
- 11.1.x vendor/nikic/php-parser/lib/PhpParser/Builder/ClassConst.php \PhpParser\Builder\ClassConst::__construct()
Constructs a class const list node.
Parameters
Node\Const_[] $consts Constant declarations:
int $flags Modifiers:
array<string, mixed> $attributes Additional attributes:
list<Node\AttributeGroup> $attrGroups PHP attribute groups:
null|Node\Identifier|Node\Name|Node\ComplexType $type Type declaration:
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Stmt/ ClassConst.php, line 27
Class
Namespace
PhpParser\Node\StmtCode
public function __construct(array $consts, int $flags = 0, array $attributes = [], array $attrGroups = [], ?Node $type = null) {
$this->attributes = $attributes;
$this->flags = $flags;
$this->consts = $consts;
$this->attrGroups = $attrGroups;
$this->type = $type;
}