Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class JsonTypeEncoder implements TypeEncoderInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var bool |
||
11 | */ |
||
12 | private $prettyPrint; |
||
13 | |||
14 | public function __construct(bool $prettyPrint = false) |
||
15 | { |
||
16 | $this->prettyPrint = $prettyPrint; |
||
17 | 2 | } |
|
18 | |||
19 | 2 | public function getContentType(): string |
|
22 | } |
||
23 | |||
24 | public function encode(array $data): string |
||
32 | } |
||
33 | } |
||
34 |