| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 2 | private function addBootstrapper(string $bootstrapperClass) |
|
| 23 | { |
||
| 24 | 2 | $bootstrapper = new $bootstrapperClass(); |
|
| 25 | 2 | if (!is_subclass_of($bootstrapperClass, BootstrapperInterface::class)) { |
|
|
|
|||
| 26 | 1 | throw new \InvalidArgumentException('bootstrapper must implement' . BootstrapperInterface::class . '.'); |
|
| 27 | } |
||
| 28 | |||
| 29 | 1 | $this->bootstrappers[] = $bootstrapper; |
|
| 30 | 1 | } |
|
| 31 | |||
| 39 |