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