菜谱项目

Label.php 513B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace PhpParser\Node\Stmt;
  3. use PhpParser\Node\Stmt;
  4. class Label extends Stmt
  5. {
  6. /** @var string Name */
  7. public $name;
  8. /**
  9. * Constructs a label node.
  10. *
  11. * @param string $name Name
  12. * @param array $attributes Additional attributes
  13. */
  14. public function __construct($name, array $attributes = array()) {
  15. parent::__construct($attributes);
  16. $this->name = $name;
  17. }
  18. public function getSubNodeNames() {
  19. return array('name');
  20. }
  21. }