| Total Complexity | 6 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class BooleanEncoder implements Encoder |
||
| 12 | { |
||
| 13 | /** @var array Default values for options in the encoder */ |
||
| 14 | private static $defaultOptions = [ |
||
| 15 | 'boolean.capitalize' => false, |
||
| 16 | ]; |
||
| 17 | |||
| 18 | public function getDefaultOptions() |
||
| 21 | } |
||
| 22 | |||
| 23 | public function supports($value) |
||
| 24 | { |
||
| 25 | return \is_bool($value); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function encode($value, $depth, array $options, callable $encode) |
||
| 35 | } |
||
| 36 | } |
||
| 37 |