function Property::__construct
Same name in this branch
- 11.1.x vendor/nikic/php-parser/lib/PhpParser/Builder/Property.php \PhpParser\Builder\Property::__construct()
- 11.1.x vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Property.php \phpDocumentor\Reflection\DocBlock\Tags\Property::__construct()
Constructs a class property list node.
Parameters
int $flags Modifiers:
PropertyItem[] $props Properties:
array<string, mixed> $attributes Additional attributes:
null|Identifier|Name|ComplexType $type Type declaration:
Node\AttributeGroup[] $attrGroups PHP attribute groups:
Node\PropertyHook[] $hooks Property hooks:
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Stmt/ Property.php, line 34
Class
Namespace
PhpParser\Node\StmtCode
public function __construct(int $flags, array $props, array $attributes = [], ?Node $type = null, array $attrGroups = [], array $hooks = []) {
$this->attributes = $attributes;
$this->flags = $flags;
$this->props = $props;
$this->type = $type;
$this->attrGroups = $attrGroups;
$this->hooks = $hooks;
}