| 1 | <?php |
||
| 10 | class Variable implements ValueInterface |
||
| 11 | { |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | private $name; |
||
| 15 | |||
| 16 | /** @var mixed */ |
||
| 17 | private $value; |
||
| 18 | |||
| 19 | /** @var string */ |
||
| 20 | private $type; |
||
| 21 | |||
| 22 | 3 | public function __construct($name, $type) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @return mixed |
||
| 30 | * |
||
| 31 | * @throws \Exception |
||
| 32 | */ |
||
| 33 | 1 | public function getValue() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param mixed $value |
||
| 44 | */ |
||
| 45 | 1 | public function setValue($value) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | 2 | public function getName() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @param string $name |
||
| 60 | */ |
||
| 61 | public function setName($name) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | 2 | public function getType() |
|
| 73 | |||
| 74 | /** |
||
| 75 | * @param string $type |
||
| 76 | */ |
||
| 77 | public function setType($type) |
||
| 81 | |||
| 82 | } |