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