class MagicConst
Hierarchy
- class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
- class \PhpParser\Node\Expr extends \PhpParser\NodeAbstract
- class \PhpParser\Node\Scalar extends \PhpParser\Node\Expr
- class \PhpParser\Node\Scalar\MagicConst extends \PhpParser\Node\Scalar
- class \PhpParser\Node\Scalar extends \PhpParser\Node\Expr
- class \PhpParser\Node\Expr extends \PhpParser\NodeAbstract
Expanded class hierarchy of MagicConst
10 files declare their use of MagicConst
- Class_.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Scalar/ MagicConst/ Class_.php - Dir.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Scalar/ MagicConst/ Dir.php - File.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Scalar/ MagicConst/ File.php - Function_.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Scalar/ MagicConst/ Function_.php - Line.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Scalar/ MagicConst/ Line.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Scalar/ MagicConst.php, line 7
Namespace
PhpParser\Node\ScalarView source
abstract class MagicConst extends Scalar {
/**
* Constructs a magic constant node.
*
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(array $attributes = []) {
$this->attributes = $attributes;
}
public function getSubNodeNames() : array {
return [];
}
/**
* Get name of magic constant.
*
* @return string Name of magic constant
*/
public abstract function getName() : string;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
MagicConst::getName | abstract public | function | Get name of magic constant. | 9 |
MagicConst::getSubNodeNames | public | function | ||
MagicConst::__construct | public | function | Constructs a magic constant node. |