1 | <?php |
||
12 | final class Serializer implements SerializerInterface |
||
13 | { |
||
14 | /** |
||
15 | * Unserializes cached data into the original state. |
||
16 | * |
||
17 | * @param array $data The data to unserialize. |
||
18 | * |
||
19 | * @return Response |
||
20 | */ |
||
21 | public function unserialize(array $data) |
||
31 | |||
32 | /** |
||
33 | * Serializes the given data for storage in caching. |
||
34 | * |
||
35 | * @param mixed $value The data to serialize for caching. |
||
36 | * |
||
37 | * @return array The result of serializing the given $data. |
||
38 | * |
||
39 | * @throws \Psr\SimpleCache\InvalidArgumentException Thrown if the given value is not a PSR-7 Response instance. |
||
40 | */ |
||
41 | public function serialize($value) : array |
||
58 | } |
||
59 |