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