Total Complexity | 8 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class AttributeFactory |
||
13 | { |
||
14 | 339 | public static function create(string $name, mixed $value = null): AttributeInterface |
|
17 | } |
||
18 | |||
19 | /** |
||
20 | * @param array $attributesKeyValue |
||
21 | * @return AttributeInterface[] |
||
22 | */ |
||
23 | 309 | public static function createFromArray(array $attributesKeyValue): array |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param string $name |
||
41 | * @return AttributeInterface |
||
42 | */ |
||
43 | 340 | private static function getClass(string $name): AttributeInterface |
|
58 |