1 | <?php |
||
5 | class TimeZoneCustomSerializer implements CustomSerializer |
||
6 | { |
||
7 | /** |
||
8 | * Serialize the object |
||
9 | * |
||
10 | * @param object $object |
||
11 | * |
||
12 | * @return array|void |
||
13 | */ |
||
14 | 12 | public function serialize($object) |
|
22 | |||
23 | /** |
||
24 | * Deserialize the object |
||
25 | * |
||
26 | * @param array $serialized |
||
27 | * @param string $fqcn the fully qualified class name |
||
28 | * |
||
29 | * @return object |
||
30 | */ |
||
31 | 12 | public function deserialize(array $serialized, $fqcn) |
|
39 | |||
40 | /** |
||
41 | * Can the custom serializer (de)serialize the objects of this class |
||
42 | * |
||
43 | * @param string $className |
||
44 | * |
||
45 | * @return boolean |
||
46 | */ |
||
47 | 30 | public function canHandle($className) |
|
51 | } |
||
52 |