Files
apimacro/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php

28 lines
602 B
PHP
Raw Normal View History

2024-05-07 12:17:25 +02:00
<?php declare(strict_types=1);
namespace PhpParser\Node\Scalar;
use PhpParser\Node\Scalar;
2024-05-17 12:24:19 +00:00
abstract class MagicConst extends Scalar {
2024-05-07 12:17:25 +02:00
/**
* Constructs a magic constant node.
*
2024-05-17 12:24:19 +00:00
* @param array<string, mixed> $attributes Additional attributes
2024-05-07 12:17:25 +02:00
*/
public function __construct(array $attributes = []) {
$this->attributes = $attributes;
}
2024-05-17 12:24:19 +00:00
public function getSubNodeNames(): array {
2024-05-07 12:17:25 +02:00
return [];
}
/**
* Get name of magic constant.
*
* @return string Name of magic constant
*/
2024-05-17 12:24:19 +00:00
abstract public function getName(): string;
2024-05-07 12:17:25 +02:00
}