Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
21 | 3 | public function __construct(ContainerInterface $container, string $middleware) |
|
22 | { |
||
23 | 3 | if (! is_subclass_of($middleware, MiddlewareInterface::class, true)) { |
|
24 | 1 | throw new InvalidArgumentException( |
|
25 | 1 | sprintf('%s does not implement %s', $middleware, MiddlewareInterface::class) |
|
26 | ); |
||
27 | } |
||
28 | |||
29 | 2 | $this->container = $container; |
|
30 | 2 | $this->middleware = $middleware; |
|
31 | 2 | } |
|
44 |