| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | 16 | public static function default(): InjectionStrategyInterface |
|
|
|
|||
| 13 | { |
||
| 14 | 16 | if (self::$default === null) { |
|
| 15 | 1 | self::$default = new DelegationStrategy( |
|
| 16 | 1 | (new Stream(InjectionStrategyInterface::class)) |
|
| 17 | 1 | ->add(new SetterStrategy) |
|
|
1 ignored issue
–
show
|
|||
| 18 | 1 | ->add(new NamedMethodStrategy) |
|
|
1 ignored issue
–
show
|
|||
| 19 | 1 | ->add(new ReflectionStrategy) |
|
|
1 ignored issue
–
show
|
|||
| 20 | ); |
||
| 21 | } |
||
| 22 | |||
| 23 | 16 | return self::$default; |
|
| 24 | } |
||
| 25 | } |
||
| 26 |