| 1 | <?php |
||
| 7 | final class NullStorageCache implements StorageCacheInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param string $id |
||
| 11 | * @param array $entry |
||
| 12 | * |
||
| 13 | * @return StorageCacheInterface |
||
| 14 | */ |
||
| 15 | 1 | public function set(string $id, array $entry): StorageCacheInterface |
|
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $id |
||
| 22 | * |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | 2 | public function has(string $id): bool |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $id |
||
| 32 | * |
||
| 33 | * @return array |
||
| 34 | * |
||
| 35 | * @throws EntryNotFoundException |
||
| 36 | */ |
||
| 37 | 2 | public function get(string $id) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $id |
||
| 44 | * |
||
| 45 | * @return StorageCacheInterface |
||
| 46 | */ |
||
| 47 | 1 | public function remove(string $id): StorageCacheInterface |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @return StorageCacheInterface |
||
| 54 | */ |
||
| 55 | 1 | public function clear(): StorageCacheInterface |
|
| 59 | } |
||
| 60 |