class ClassConstFetch
Hierarchy
- class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
- class \PhpParser\Node\Expr extends \PhpParser\NodeAbstract
- class \PhpParser\Node\Expr\ClassConstFetch extends \PhpParser\Node\Expr
- class \PhpParser\Node\Expr extends \PhpParser\NodeAbstract
Expanded class hierarchy of ClassConstFetch
3 files declare their use of ClassConstFetch
- DataProviderHelper.php in vendor/
phpstan/ phpstan-phpunit/ src/ Rules/ PHPUnit/ DataProviderHelper.php - DrupalServiceDynamicReturnTypeExtension.php in vendor/
mglaman/ phpstan-drupal/ src/ Type/ DrupalServiceDynamicReturnTypeExtension.php - FetchingClassConstOfDeprecatedClassRule.php in vendor/
phpstan/ phpstan-deprecation-rules/ src/ Rules/ Deprecations/ FetchingClassConstOfDeprecatedClassRule.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ ClassConstFetch.php, line 10
Namespace
PhpParser\Node\ExprView source
class ClassConstFetch extends Expr {
/** @var Name|Expr Class name */
public Node $class;
/** @var Identifier|Expr|Error Constant name */
public Node $name;
/**
* Constructs a class const fetch node.
*
* @param Name|Expr $class Class name
* @param string|Identifier|Expr|Error $name Constant 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 Identifier($name) : $name;
}
public function getSubNodeNames() : array {
return [
'class',
'name',
];
}
public function getType() : string {
return 'Expr_ClassConstFetch';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ClassConstFetch::$class | public | property | @var Name|Expr Class name |
ClassConstFetch::$name | public | property | @var Identifier|Expr|Error Constant name |
ClassConstFetch::getSubNodeNames | public | function | |
ClassConstFetch::getType | public | function | |
ClassConstFetch::__construct | public | function | Constructs a class const fetch node. |