菜谱项目

Declare_.php 766B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace PhpParser\Node\Stmt;
  3. use PhpParser\Node;
  4. class Declare_ extends Node\Stmt
  5. {
  6. /** @var DeclareDeclare[] List of declares */
  7. public $declares;
  8. /** @var Node[] Statements */
  9. public $stmts;
  10. /**
  11. * Constructs a declare node.
  12. *
  13. * @param DeclareDeclare[] $declares List of declares
  14. * @param Node[]|null $stmts Statements
  15. * @param array $attributes Additional attributes
  16. */
  17. public function __construct(array $declares, array $stmts = null, array $attributes = array()) {
  18. parent::__construct($attributes);
  19. $this->declares = $declares;
  20. $this->stmts = $stmts;
  21. }
  22. public function getSubNodeNames() {
  23. return array('declares', 'stmts');
  24. }
  25. }