| 1 | <?php |
||
| 12 | class ArrayStorage implements KeyValueStorageInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | protected $storage = array(); |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Gets a value from a key in the storage |
||
| 21 | * |
||
| 22 | * @param $key |
||
| 23 | * @return string|null |
||
| 24 | */ |
||
| 25 | public function get($key) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Sets a key in the storage to a value |
||
| 36 | * |
||
| 37 | * @param $key |
||
| 38 | * @param $value |
||
| 39 | * @return KeyValueStorageInterface |
||
| 40 | */ |
||
| 41 | public function set($key, $value) |
||
| 46 | |||
| 47 | } |