| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 2 | private function addProvider(string $providerClass) |
|
| 26 | { |
||
| 27 | 2 | $provider = new $providerClass(); |
|
| 28 | 2 | if (!$provider instanceof ServiceProviderInterface) { |
|
| 29 | 1 | throw new \InvalidArgumentException('provider must implement' . ServiceProviderInterface::class . '.'); |
|
| 30 | } |
||
| 31 | |||
| 32 | 1 | $this->providers[] = $provider; |
|
| 33 | 1 | } |
|
| 34 | |||
| 45 |