Total Complexity | 3 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 62.5% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class Enum implements MappingStrategy, DefaultAttributesProvider |
||
8 | { |
||
9 | 2 | public static function hydrate(&$value, array $attributes = []): void |
|
12 | 2 | } |
|
13 | |||
14 | public static function extract(&$value, array $attributes = []): void |
||
15 | { |
||
16 | $value = array_search($value, $attributes['values']); |
||
17 | } |
||
18 | |||
19 | 1 | public static function getDefaultAttributes(): array |
|
23 | ]; |
||
24 | } |
||
26 |