| 1 | <?php |
||
| 6 | final class JsonSerializer implements SerializerInterface { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @var bool |
||
| 10 | */ |
||
| 11 | private $decodeAssoc; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param bool $decodeAssoc |
||
| 15 | */ |
||
| 16 | 5 | public function __construct($decodeAssoc = true) |
|
| 20 | |||
| 21 | /** |
||
| 22 | * @param $item |
||
| 23 | * @return mixed |
||
| 24 | */ |
||
| 25 | 5 | public function serialize($item) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @param $item |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | 5 | public function deserialize($item) |
|
| 38 | } |