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