| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 6 | public function __construct(string $className = WebService::class) |
|
| 19 | { |
||
| 20 | 6 | 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 | 6 | $this->class = $className; |
|
| 25 | 6 | } |
|
| 26 | |||
| 40 |