No Description

Global_.php 675B

12345678910111213141516171819202122232425262728293031
  1. <?php declare(strict_types=1);
  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 = []) {
  15. $this->attributes = $attributes;
  16. $this->vars = $vars;
  17. }
  18. public function getSubNodeNames() : array {
  19. return ['vars'];
  20. }
  21. public function getType() : string {
  22. return 'Stmt_Global';
  23. }
  24. }