Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | 3 | public function __construct(ContainerInterface $container, string $handler) |
|
22 | { |
||
23 | 3 | if ($container->has($handler) === false) { |
|
24 | 1 | throw new InvalidArgumentException(sprintf('Container is missing handler "%s"', $handler)); |
|
25 | } |
||
26 | |||
27 | 2 | $this->container = $container; |
|
28 | 2 | $this->handler = $handler; |
|
29 | 2 | } |
|
42 |