No Description

Continue_.php 708B

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