| 1 | <?php |
||
| 19 | class Value |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $key; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var mixed |
||
| 28 | */ |
||
| 29 | protected $value; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $key |
||
| 33 | * @param mixed $value |
||
| 34 | */ |
||
| 35 | 52 | public function __construct(string $key, $value) |
|
| 36 | { |
||
| 37 | 52 | $this->key = $key; |
|
| 38 | 52 | $this->value = $value; |
|
| 39 | 52 | } |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | 5 | public function getKey(): string |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return mixed |
||
| 51 | */ |
||
| 52 | 11 | public function getValue() |
|
| 56 | } |
||
| 57 |