| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 1 | public function __construct( |
|
| 19 | ScopeInterface $scope, |
||
| 20 | private readonly InvokerInterface $invoker, |
||
| 21 | private readonly ResolverInterface $resolver, |
||
| 22 | InitializerInterface $initializer, |
||
| 23 | ?InvokerStrategyInterface $invokerStrategy = null |
||
| 24 | ) { |
||
| 25 | 1 | parent::__construct($scope, $initializer); |
|
| 26 | |||
| 27 | 1 | $this->invokerStrategy = $invokerStrategy ?? new DefaultStrategy( |
|
| 28 | 1 | ...$this->resolver->resolveArguments((new \ReflectionClass(DefaultStrategy::class))->getConstructor()) |
|
| 29 | ); |
||
| 44 |