| 1 | <?php |
||
| 11 | class VariableReference implements ValueInterface |
||
| 12 | { |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | private $name; |
||
| 16 | |||
| 17 | /** @var Variable */ |
||
| 18 | private $variable; |
||
| 19 | |||
| 20 | /** @var mixed */ |
||
| 21 | private $value; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * VariableReference constructor. |
||
| 25 | * |
||
| 26 | * @param string $name |
||
| 27 | * @param Variable|null $variable |
||
| 28 | */ |
||
| 29 | 6 | public function __construct($name, Variable $variable = null) |
|
| 34 | |||
| 35 | 6 | public function getVariable() |
|
| 39 | |||
| 40 | 3 | public function getValue() |
|
| 44 | |||
| 45 | 3 | public function setValue($value) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | 1 | public function getName() |
|
| 57 | } |
||
| 58 |