1 | <?php |
||
7 | final class JsonFormatter implements FormatterInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var int |
||
11 | */ |
||
12 | private $options; |
||
13 | |||
14 | /** |
||
15 | * @var int |
||
16 | */ |
||
17 | private $level; |
||
18 | |||
19 | /** |
||
20 | * JsonFormatter constructor. |
||
21 | * |
||
22 | * @param int $options |
||
23 | * @param int $level |
||
24 | */ |
||
25 | 1 | public function __construct(int $options = 0, int $level = 512) |
|
30 | |||
31 | /** |
||
32 | * @param array $data |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | 1 | public function format(array $data): string |
|
40 | } |
||
41 |