| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 5 | public function create(ReceiverFactory $factory, ...$arguments): ReceiverInterface |
|
| 18 | { |
||
| 19 | 5 | if (!isset($arguments[0]) || !($arguments[0] instanceof ServicesResetter)) { |
|
| 20 | 1 | throw new \LogicException(sprintf('First argument of %s should be an instance of %s.', ResetServices::class, ServicesResetter::class)); |
|
| 21 | } |
||
| 22 | |||
| 23 | 4 | return new ResetServices($arguments[0]); |
|
| 24 | } |
||
| 26 |