菜谱项目

Global_.php 571B

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