Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2.0185 |
Changes | 0 |
1 | <?php |
||
26 | 5 | public function __construct( |
|
27 | string $className = WebService::class, |
||
28 | ?EventDispatcherInterface $eventDispatcher = null |
||
29 | ) { |
||
30 | 5 | if (!is_a($className, WebServiceInterface::class, true)) { |
|
31 | throw new InvalidArgumentException("Argument must be class name of a class implementing WebServiceInterface. '$className' given"); |
||
32 | } |
||
33 | |||
34 | 5 | $this->class = $className; |
|
35 | 5 | $this->eventDispatcher = $eventDispatcher; |
|
36 | 5 | } |
|
37 | |||
51 |