Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 0 |
1 | <?php |
||
18 | 2 | public function __construct(string $className = WebService::class) |
|
19 | { |
||
20 | 2 | if (!is_a($className, WebServiceInterface::class, true)) { |
|
21 | throw new InvalidArgumentException("Argument must be class name of a class implementing WebServiceInterface. '$className' given"); |
||
22 | } |
||
23 | |||
24 | 2 | $this->class = $className; |
|
25 | 2 | } |
|
26 | |||
35 |