No Description

MagicConst.php 589B

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