菜谱项目

MagicConst.php 558B

1234567891011121314151617181920212223242526272829
  1. <?php
  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 = array()) {
  12. parent::__construct($attributes);
  13. }
  14. public function getSubNodeNames() {
  15. return array();
  16. }
  17. /**
  18. * Get name of magic constant.
  19. *
  20. * @return string Name of magic constant
  21. */
  22. abstract public function getName();
  23. }