class Global_
Hierarchy
- class \PhpParser\Node\Stmt\Global_ extends \Node\Stmt
Expanded class hierarchy of Global_
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Stmt/ Global_.php, line 7
Namespace
PhpParser\Node\StmtView source
class Global_ extends Node\Stmt {
/** @var Node\Expr[] Variables */
public array $vars;
/**
* Constructs a global variables list node.
*
* @param Node\Expr[] $vars Variables to unset
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(array $vars, array $attributes = []) {
$this->attributes = $attributes;
$this->vars = $vars;
}
public function getSubNodeNames() : array {
return [
'vars',
];
}
public function getType() : string {
return 'Stmt_Global';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Global_::$vars | public | property | @var Node\Expr[] Variables |
Global_::getSubNodeNames | public | function | |
Global_::getType | public | function | |
Global_::__construct | public | function | Constructs a global variables list node. |