@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | * Build and return the path of a directory |
| 132 | 132 | * |
| 133 | 133 | * @param string $path The directory path to build |
| 134 | - * @return mixed |
|
| 134 | + * @return string |
|
| 135 | 135 | */ |
| 136 | 136 | protected function buildPath($path) |
| 137 | 137 | { |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | * |
| 356 | 356 | * @param boolean $all Wether to flush the whole database, or (preferably) |
| 357 | 357 | * the entries prefixed with prefix_key and prefix_tag. |
| 358 | - * @return boolean Returns True on success or False on failure. |
|
| 358 | + * @return boolean|null Returns True on success or False on failure. |
|
| 359 | 359 | */ |
| 360 | 360 | public function flush($all = false) |
| 361 | 361 | { |
@@ -169,7 +169,7 @@ |
||
| 169 | 169 | * |
| 170 | 170 | * @param boolean $all Wether to flush the whole database, or (preferably) |
| 171 | 171 | * the entries prefixed with prefix_key and prefix_tag. |
| 172 | - * @return boolean Returns True on success or False on failure. |
|
| 172 | + * @return boolean|null Returns True on success or False on failure. |
|
| 173 | 173 | */ |
| 174 | 174 | public function flush($all = false) |
| 175 | 175 | { |
@@ -267,7 +267,7 @@ |
||
| 267 | 267 | * @param string $id The cache id to retrieve. |
| 268 | 268 | * @param float $cas_token The variable to store the CAS token in. |
| 269 | 269 | * |
| 270 | - * @return mixed|null Returns the cached data or null. |
|
| 270 | + * @return string Returns the cached data or null. |
|
| 271 | 271 | */ |
| 272 | 272 | public function get($id, &$cas_token = null) |
| 273 | 273 | { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * from the pool. |
| 56 | 56 | * @param string $key The item key |
| 57 | 57 | * @param mixed $value The item value (unserialized) |
| 58 | - * @param \DateTime|integer|null $ttl |
|
| 58 | + * @param integer|null $ttl |
|
| 59 | 59 | * @param bool $hit Was this item retrived from cache? |
| 60 | 60 | */ |
| 61 | 61 | public function __construct($key, $value = null, $ttl = null, $hit = false) |
@@ -69,6 +69,7 @@ discard block |
||
| 69 | 69 | /** |
| 70 | 70 | * Returns a normalised key. |
| 71 | 71 | * |
| 72 | + * @param string $key |
|
| 72 | 73 | * @return string |
| 73 | 74 | */ |
| 74 | 75 | public static function normalizedKey($key) |