php-parser/lib/PhpParser/Node/Stmt/Global_.php

27 lines
571 B
PHP
Raw Normal View History

2011-06-05 18:40:04 +02:00
<?php
namespace PhpParser\Node\Stmt;
use PhpParser\Node;
class Global_ extends Node\Stmt
2011-06-05 18:40:04 +02:00
{
/** @var Node\Expr[] Variables */
public $vars;
/**
* Constructs a global variables list node.
*
* @param Node\Expr[] $vars Variables to unset
* @param array $attributes Additional attributes
*/
public function __construct(array $vars, array $attributes = array()) {
2015-05-02 22:17:34 +02:00
parent::__construct($attributes);
$this->vars = $vars;
}
public function getSubNodeNames() {
return array('vars');
}
}