| 1 | <?php |
||
| 10 | class Variable implements ValueInterface |
||
| 11 | { |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | private $name; |
||
| 15 | |||
| 16 | private $value; |
||
| 17 | |||
| 18 | 1 | public function __construct($name) |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @return mixed |
||
| 25 | * |
||
| 26 | * @throws \Exception |
||
| 27 | */ |
||
| 28 | public function getValue() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param mixed $value |
||
| 39 | */ |
||
| 40 | public function setValue($value) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getName() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param string $name |
||
| 55 | */ |
||
| 56 | public function setName($name) |
||
| 60 | } |