| 1 | <?php |
||
| 11 | class PhpSerializer extends AbstractSerializer |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Serialized content type. |
||
| 16 | * type/lang[/serizalizationFunctions] |
||
| 17 | */ |
||
| 18 | const SERIALIZED_CONTENT_TYPE = 'application/php/serialize/base64_encode'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param mixed $input |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | 1 | public function serialize($input) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @param $input |
||
| 31 | * @return mixed |
||
| 32 | */ |
||
| 33 | 1 | public function unserialize($input) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 1 | public function getSerializedContentType() |
|
| 45 | } |