| 1 | <?php |
||
| 10 | class DataStorageExtension implements DataStorageInterface |
||
| 11 | { |
||
| 12 | /** @var array */ |
||
| 13 | protected $data = []; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * {@inheritdoc} |
||
| 17 | */ |
||
| 18 | public function has($key) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | public function get($key, $default = null) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function set($key, $value) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function remove($key) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $key |
||
| 49 | * @param mixed $value |
||
| 50 | * |
||
| 51 | * @deprecated since 1.9. use {@see set} method instead |
||
| 52 | */ |
||
| 53 | public function put($key, $value) |
||
| 57 | } |
||
| 58 |