Else_.php 658 B

123456789101112131415161718192021222324252627282930
  1. <?php declare(strict_types=1);
  2. namespace PhpParser\Node\Stmt;
  3. use PhpParser\Node;
  4. class Else_ extends Node\Stmt
  5. {
  6. /** @var Node\Stmt[] Statements */
  7. public $stmts;
  8. /**
  9. * Constructs an else node.
  10. *
  11. * @param Node\Stmt[] $stmts Statements
  12. * @param array $attributes Additional attributes
  13. */
  14. public function __construct(array $stmts = [], array $attributes = []) {
  15. $this->attributes = $attributes;
  16. $this->stmts = $stmts;
  17. }
  18. public function getSubNodeNames() : array {
  19. return ['stmts'];
  20. }
  21. public function getType() : string {
  22. return 'Stmt_Else';
  23. }
  24. }