1 | <?php |
||
9 | class JsonSerializer extends AbstractSerializer |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * Serialized content type. |
||
14 | * type/lang[/serizalizationFunctions] |
||
15 | */ |
||
16 | const SERIALIZED_CONTENT_TYPE = 'application/json'; |
||
17 | |||
18 | /** |
||
19 | * @param mixed $input |
||
20 | * @return string |
||
21 | */ |
||
22 | 1 | public function serialize($input) |
|
26 | |||
27 | /** |
||
28 | * @param $input |
||
29 | * @return mixed |
||
30 | */ |
||
31 | 1 | public function unserialize($input) |
|
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | 1 | public function getSerializedContentType() |
|
43 | } |