class Property
Same name in this branch
- 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Property.php \PhpParser\Node\Scalar\MagicConst\Property
- 11.1.x vendor/nikic/php-parser/lib/PhpParser/Builder/Property.php \PhpParser\Builder\Property
- 11.1.x vendor/mck89/peast/lib/Peast/Syntax/Node/Property.php \Peast\Syntax\Node\Property
- 11.1.x vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Property.php \phpDocumentor\Reflection\DocBlock\Tags\Property
Hierarchy
- class \PhpParser\Node\Stmt\Property extends \Node\Stmt
Expanded class hierarchy of Property
1 file declares its use of Property
- ParserAbstract.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ ParserAbstract.php
40 string references to 'Property'
- AnnotationHelper::processDocComment in vendor/
phpstan/ phpstan-phpunit/ src/ Rules/ PHPUnit/ AnnotationHelper.php - *
- AssignmentProperty::getType in vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Node/ AssignmentProperty.php - Returns node's type
- AttributeAutoconfigurationPass::process in vendor/
symfony/ dependency-injection/ Compiler/ AttributeAutoconfigurationPass.php - You can modify the container here before it is dumped to PHP code.
- BlockCustomTranslation::prepareRow in core/
modules/ block_content/ src/ Plugin/ migrate/ source/ d7/ BlockCustomTranslation.php - Adds additional data to the row.
- d6_field_instance_label_description_translation.yml in core/
modules/ config_translation/ migrations/ d6_field_instance_label_description_translation.yml - core/modules/config_translation/migrations/d6_field_instance_label_description_translation.yml
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Stmt/ Property.php, line 12
Namespace
PhpParser\Node\StmtView source
class Property extends Node\Stmt {
/** @var int Modifiers */
public int $flags;
/** @var PropertyItem[] Properties */
public array $props;
/** @var null|Identifier|Name|ComplexType Type declaration */
public ?Node $type;
/** @var Node\AttributeGroup[] PHP attribute groups */
public array $attrGroups;
/** @var Node\PropertyHook[] Property hooks */
public array $hooks;
/**
* Constructs a class property list node.
*
* @param int $flags Modifiers
* @param PropertyItem[] $props Properties
* @param array<string, mixed> $attributes Additional attributes
* @param null|Identifier|Name|ComplexType $type Type declaration
* @param Node\AttributeGroup[] $attrGroups PHP attribute groups
* @param Node\PropertyHook[] $hooks Property hooks
*/
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;
}
public function getSubNodeNames() : array {
return [
'attrGroups',
'flags',
'type',
'props',
'hooks',
];
}
/**
* Whether the property is explicitly or implicitly public.
*/
public function isPublic() : bool {
return ($this->flags & Modifiers::PUBLIC) !== 0 || ($this->flags & Modifiers::VISIBILITY_MASK) === 0;
}
/**
* Whether the property is protected.
*/
public function isProtected() : bool {
return (bool) ($this->flags & Modifiers::PROTECTED);
}
/**
* Whether the property is private.
*/
public function isPrivate() : bool {
return (bool) ($this->flags & Modifiers::PRIVATE);
}
/**
* Whether the property is static.
*/
public function isStatic() : bool {
return (bool) ($this->flags & Modifiers::STATIC);
}
/**
* Whether the property is readonly.
*/
public function isReadonly() : bool {
return (bool) ($this->flags & Modifiers::READONLY);
}
/**
* Whether the property has explicit public(set) visibility.
*/
public function isPublicSet() : bool {
return (bool) ($this->flags & Modifiers::PUBLIC_SET);
}
/**
* Whether the property has explicit protected(set) visibility.
*/
public function isProtectedSet() : bool {
return (bool) ($this->flags & Modifiers::PROTECTED_SET);
}
/**
* Whether the property has explicit private(set) visibility.
*/
public function isPrivateSet() : bool {
return (bool) ($this->flags & Modifiers::PRIVATE_SET);
}
public function getType() : string {
return 'Stmt_Property';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Property::$attrGroups | public | property | @var Node\AttributeGroup[] PHP attribute groups |
Property::$flags | public | property | @var int Modifiers |
Property::$hooks | public | property | @var Node\PropertyHook[] Property hooks |
Property::$props | public | property | @var PropertyItem[] Properties |
Property::$type | public | property | @var null|Identifier|Name|ComplexType Type declaration |
Property::getSubNodeNames | public | function | |
Property::getType | public | function | |
Property::isPrivate | public | function | Whether the property is private. |
Property::isPrivateSet | public | function | Whether the property has explicit private(set) visibility. |
Property::isProtected | public | function | Whether the property is protected. |
Property::isProtectedSet | public | function | Whether the property has explicit protected(set) visibility. |
Property::isPublic | public | function | Whether the property is explicitly or implicitly public. |
Property::isPublicSet | public | function | Whether the property has explicit public(set) visibility. |
Property::isReadonly | public | function | Whether the property is readonly. |
Property::isStatic | public | function | Whether the property is static. |
Property::__construct | public | function | Constructs a class property list node. |