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 |
||
22 | 3 | public function __construct(ContainerInterface $container, string $middleware) |
|
23 | { |
||
24 | 3 | if ($container->has($middleware) === false) { |
|
25 | 1 | throw new InvalidArgumentException(sprintf('Container is missing middleware "%s"', $middleware)); |
|
26 | } |
||
27 | |||
28 | 2 | $this->container = $container; |
|
29 | 2 | $this->middleware = $middleware; |
|
30 | 2 | } |
|
43 |