| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function __construct(string $classname, int $number = 1) |
||
| 32 | { |
||
| 33 | if (!in_array(IChallenge::class, class_implements($classname), true)) { |
||
| 34 | throw new InvalidArgumentException(); |
||
| 35 | } elseif ($number < 1) { |
||
| 36 | throw new InvalidArgumentException(); |
||
| 37 | } |
||
| 38 | $this->classname = $classname; |
||
| 39 | $this->number = $number; |
||
| 40 | } |
||
| 67 |