1 | <?php |
||
19 | final class JsonConverter implements JsonConverterInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var int |
||
23 | */ |
||
24 | private $options; |
||
25 | |||
26 | /** |
||
27 | * @var int |
||
28 | */ |
||
29 | private $depth; |
||
30 | |||
31 | /** |
||
32 | * StandardJsonEncoder constructor. |
||
33 | * See also json_encode and json_decode parameters. |
||
34 | * |
||
35 | * @param int $options |
||
36 | * @param int $depth |
||
37 | */ |
||
38 | public function __construct(int $options = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE, int $depth = 512) |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function encode($payload): string |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function decode(string $payload, bool $associativeArray = true) |
||
59 | } |
||
60 |