Total Complexity | 7 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class SetStateEncoder implements EncoderInterface |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritDoc} |
||
15 | */ |
||
16 | public function supports(mixed $value): bool |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * {@inheritDoc} |
||
24 | * |
||
25 | * @param object $object |
||
26 | */ |
||
27 | public function encode(Encoder $encoder, mixed $object): array |
||
33 | ]; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Extract object properties as an associative array. |
||
38 | */ |
||
39 | protected static function extract(object $object): array |
||
55 |