Total Complexity | 4 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
10 | class ObjectEncoder implements Encoder |
||
11 | { |
||
12 | 24 | public function getDefaultOptions(): array |
|
15 | } |
||
16 | |||
17 | 24 | public function supports($value): bool |
|
18 | { |
||
19 | 24 | return is_object($value) && !$value instanceof Closure; |
|
20 | } |
||
21 | |||
22 | 2 | public function encode($value, $depth, array $options, callable $encode) |
|
27 | } |
||
28 | } |
||
29 |