@@ -22,6 +22,9 @@ |
||
| 22 | 22 | |
| 23 | 23 | protected $hit; |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param string $key |
|
| 27 | + */ |
|
| 25 | 28 | public function __construct($key, $ttl = null, $hit = false) |
| 26 | 29 | { |
| 27 | 30 | $this->key = $key; |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | * |
| 195 | 195 | * @param CacheItemInterface[] $items |
| 196 | 196 | * |
| 197 | - * @return bool |
|
| 197 | + * @return boolean|null |
|
| 198 | 198 | * TRUE if all provided items were successfully saved. FALSE otherwise. |
| 199 | 199 | */ |
| 200 | 200 | protected function write(array $items) |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * If the $key string is not a legal value a \Psr\Cache\InvalidArgumentException |
| 217 | 217 | * MUST be thrown. |
| 218 | 218 | * |
| 219 | - * @return bool |
|
| 219 | + * @return boolean|null |
|
| 220 | 220 | * True if item exists in the cache, false otherwise. |
| 221 | 221 | */ |
| 222 | 222 | public function hasItem($key) |