class PropertyFetch
Hierarchy
- class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
- class \PhpParser\Node\Expr extends \PhpParser\NodeAbstract
- class \PhpParser\Node\Expr\PropertyFetch extends \PhpParser\Node\Expr
- class \PhpParser\Node\Expr extends \PhpParser\NodeAbstract
Expanded class hierarchy of PropertyFetch
1 file declares its use of PropertyFetch
- AccessDeprecatedPropertyRule.php in vendor/
phpstan/ phpstan-deprecation-rules/ src/ Rules/ Deprecations/ AccessDeprecatedPropertyRule.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ PropertyFetch.php, line 9
Namespace
PhpParser\Node\ExprView source
class PropertyFetch extends Expr {
/** @var Expr Variable holding object */
public Expr $var;
/** @var Identifier|Expr Property name */
public Node $name;
/**
* Constructs a function call node.
*
* @param Expr $var Variable holding object
* @param string|Identifier|Expr $name Property name
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(Expr $var, $name, array $attributes = []) {
$this->attributes = $attributes;
$this->var = $var;
$this->name = \is_string($name) ? new Identifier($name) : $name;
}
public function getSubNodeNames() : array {
return [
'var',
'name',
];
}
public function getType() : string {
return 'Expr_PropertyFetch';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
PropertyFetch::$name | public | property | @var Identifier|Expr Property name |
PropertyFetch::$var | public | property | @var Expr Variable holding object |
PropertyFetch::getSubNodeNames | public | function | |
PropertyFetch::getType | public | function | |
PropertyFetch::__construct | public | function | Constructs a function call node. |