1: <?php
2: namespace Pharborist\Variables;
3:
4: use Pharborist\ExpressionNode;
5: use Pharborist\Node;
6: use Pharborist\ParentNode;
7:
8: /**
9: * A static variable declaration.
10: *
11: * For example, $a = A_SCALAR_VALUE
12: */
13: class StaticVariableNode extends ParentNode {
14: /**
15: * @var VariableNode
16: */
17: protected $name;
18:
19: /**
20: * @var ExpressionNode
21: */
22: protected $initialValue;
23:
24: /**
25: * @return VariableNode
26: */
27: public function getName() {
28: return $this->name;
29: }
30:
31: /**
32: * @return Node
33: */
34: public function getInitialValue() {
35: return $this->initialValue;
36: }
37: }
38: