class ConstFetch
Hierarchy
- class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
- class \PhpParser\Node\Expr extends \PhpParser\NodeAbstract
- class \PhpParser\Node\Expr\ConstFetch extends \PhpParser\Node\Expr
- class \PhpParser\Node\Expr extends \PhpParser\NodeAbstract
Expanded class hierarchy of ConstFetch
4 files declare their use of ConstFetch
- AssertSameBooleanExpectedRule.php in vendor/
phpstan/ phpstan-phpunit/ src/ Rules/ PHPUnit/ AssertSameBooleanExpectedRule.php - AssertSameNullExpectedRule.php in vendor/
phpstan/ phpstan-phpunit/ src/ Rules/ PHPUnit/ AssertSameNullExpectedRule.php - AssertTypeSpecifyingExtensionHelper.php in vendor/
phpstan/ phpstan-phpunit/ src/ Type/ PHPUnit/ Assert/ AssertTypeSpecifyingExtensionHelper.php - FetchingDeprecatedConstRule.php in vendor/
phpstan/ phpstan-deprecation-rules/ src/ Rules/ Deprecations/ FetchingDeprecatedConstRule.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ ConstFetch.php, line 8
Namespace
PhpParser\Node\ExprView source
class ConstFetch extends Expr {
/** @var Name Constant name */
public Name $name;
/**
* Constructs a const fetch node.
*
* @param Name $name Constant name
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(Name $name, array $attributes = []) {
$this->attributes = $attributes;
$this->name = $name;
}
public function getSubNodeNames() : array {
return [
'name',
];
}
public function getType() : string {
return 'Expr_ConstFetch';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ConstFetch::$name | public | property | @var Name Constant name |
ConstFetch::getSubNodeNames | public | function | |
ConstFetch::getType | public | function | |
ConstFetch::__construct | public | function | Constructs a const fetch node. |