1 | <?php |
||
13 | final class Serializer implements SerializerInterface |
||
14 | { |
||
15 | /** |
||
16 | * Unserializes cached data into the original state. |
||
17 | * |
||
18 | * @param array $data The data to unserialize. |
||
19 | * |
||
20 | * @return Response |
||
21 | */ |
||
22 | public function unserialize($data) //@codingStandardsIgnoreLine Interface does not define type-hints or return |
||
33 | |||
34 | /** |
||
35 | * Serializes the given data for storage in caching. |
||
36 | * |
||
37 | * @param mixed $value The data to serialize for caching. |
||
38 | * |
||
39 | * @return array The result of serializing the given $data. |
||
40 | * |
||
41 | * @throws InvalidArgumentException Thrown if the given value is not a PSR-7 Response instance. |
||
42 | */ |
||
43 | public function serialize($value) |
||
58 | |||
59 | private function ensure(bool $condition, string $message) |
||
69 | } |
||
70 |