Conditions | 4 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
21 | 18 | public function __construct($container) |
|
22 | 18 | { |
|
23 | if (!$container instanceof PsrContainerInterface && !$container instanceof ContainerInterface) { |
||
|
|||
24 | 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))); |
||
25 | } |
||
26 | |||
27 | 16 | $this->container = $container; |
|
28 | } |
||
52 |