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