1: <?php declare(strict_types=1);
2:
3: namespace PhpParser\Node\Scalar;
4:
5: use PhpParser\Node\Scalar;
6:
7: abstract class MagicConst extends Scalar
8: {
9: /**
10: * Constructs a magic constant node.
11: *
12: * @param array $attributes Additional attributes
13: */
14: public function __construct(array $attributes = []) {
15: $this->attributes = $attributes;
16: }
17:
18: public function getSubNodeNames() : array {
19: return [];
20: }
21:
22: /**
23: * Get name of magic constant.
24: *
25: * @return string Name of magic constant
26: */
27: abstract public function getName() : string;
28: }
29: