| 1 | <?php |
||
| 8 | abstract class AbstractCache |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Verifies the the given cache key is a legal value. |
||
| 12 | * |
||
| 13 | * @param mixed $key The cache key to validate. |
||
| 14 | * |
||
| 15 | * @return void |
||
| 16 | * |
||
| 17 | * @throws InvalidArgumentException Thrown if the $key string is not a legal value. |
||
| 18 | */ |
||
| 19 | final protected function verifyKey($key) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Verify a given $value is an instance of PSR-7 ResponseInterface. |
||
| 28 | * |
||
| 29 | * @param mixed $value The PSR-7 Response to cache. |
||
| 30 | * |
||
| 31 | * @return void |
||
| 32 | * |
||
| 33 | * @throws InvalidArgumentException Thrown if $value is not a PSR-7 Response instance. |
||
| 34 | */ |
||
| 35 | final protected function verifyValue($value) |
||
| 41 | } |
||
| 42 |