Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
1 | <?php |
||
21 | 13 | public static function defaults(): TypedCollectionInterface |
|
22 | { |
||
23 | 13 | if (self::$defaults !== null) { |
|
24 | 13 | return self::$defaults; |
|
25 | } |
||
26 | |||
27 | 1 | self::$defaults = new TypedCollection( |
|
28 | 1 | ExtractionStrategyInterface::class, |
|
29 | [ |
||
30 | 1 | new GetterStrategy, |
|
31 | 1 | new NamedMethodStrategy, |
|
32 | 1 | new ReflectionStrategy, |
|
33 | ] |
||
34 | ); |
||
35 | |||
36 | 1 | return self::$defaults; |
|
37 | } |
||
38 | } |
||
39 |