菜谱项目

Break_.php 590B

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