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