| Conditions | 4 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 3 | public function __construct($container, string $realDriverId) |
|
| 27 | { |
||
| 28 | 3 | if (!$container instanceof PsrContainerInterface && !$container instanceof ContainerInterface) { |
|
|
|
|||
| 29 | 1 | throw new \InvalidArgumentException(sprintf('The container must be an instance of %s or %s (%s given).', PsrContainerInterface::class, ContainerInterface::class, \is_object($container) ? \get_class($container) : \gettype($container))); |
|
| 30 | } |
||
| 31 | |||
| 32 | 2 | $this->container = $container; |
|
| 33 | 2 | $this->realDriverId = $realDriverId; |
|
| 34 | 2 | } |
|
| 41 |