1 | <?php |
||
10 | final class BasicSerializer implements SerializerInterface |
||
11 | { |
||
12 | /** |
||
13 | * Unserializes cached data into the original state. |
||
14 | * |
||
15 | * @param mixed $data The data to unserialize. |
||
16 | * |
||
17 | * @return mixed |
||
18 | * |
||
19 | * @throws InvalidArgumentException Thrown if the given value cannot be unserialized. |
||
20 | */ |
||
21 | public function unserialize($data) |
||
34 | |||
35 | /** |
||
36 | * Serializes the given data for storage in caching. |
||
37 | * |
||
38 | * @param mixed $value The data to serialize for caching. |
||
39 | * |
||
40 | * @return mixed The result of serializing the given $data. |
||
41 | * |
||
42 | * @throws InvalidArgumentException Thrown if the given value cannot be serialized for caching. |
||
43 | */ |
||
44 | public function serialize($value) |
||
52 | |||
53 | private function throwIfTrue(bool $condition, string $message) |
||
59 | |||
60 | private function getErrorHandler() : callable |
||
66 | } |
||
67 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.