Total Complexity | 4 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 90.91% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
8 | final class Id implements MappingStrategy, DefaultAttributesProvider |
||
9 | { |
||
10 | 12 | public static function hydrate(&$value, $attributes = []): void |
|
11 | { |
||
12 | 12 | $generator = $attributes['generator']; |
|
13 | 12 | $value = new $generator($value); |
|
14 | 12 | } |
|
15 | |||
16 | 5 | public static function extract(&$value, $attributes = []): void |
|
22 | } |
||
23 | 5 | } |
|
24 | |||
25 | 1 | public static function getDefaultAttributes(): array |
|
29 | ]; |
||
30 | } |
||
32 |