| 1 | <?php |
||
| 11 | class ArrayStorage implements StorageInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | private $storage = array(); |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param string $key |
||
| 20 | * @return mixed|null |
||
| 21 | */ |
||
| 22 | public function get($key) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $key |
||
| 29 | * @param mixed $value |
||
| 30 | */ |
||
| 31 | public function set($key, $value) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $key |
||
| 38 | */ |
||
| 39 | public function remove($key) |
||
| 45 | } |
||
| 46 |