1: <?php
2: namespace Pharborist\Variables;
3:
4: use Pharborist\CommaListNode;
5: use Pharborist\NodeCollection;
6: use Pharborist\StatementNode;
7:
8: /**
9: * A global statement, e.g. `global $a, $b`
10: */
11: class GlobalStatementNode extends StatementNode {
12: /**
13: * @var CommaListNode
14: */
15: protected $variables;
16:
17: /**
18: * @return CommaListNode
19: */
20: public function getVariableList() {
21: return $this->variables;
22: }
23:
24: /**
25: * @return NodeCollection|VariableExpressionNode[]
26: */
27: public function getVariables() {
28: return $this->variables->getItems();
29: }
30: }
31: