| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 10 | public function __construct($scheme) |
|
| 25 | { |
||
| 26 | 10 | if (!is_string($scheme)) { |
|
| 27 | 6 | throw new \InvalidArgumentException("Scheme must be a string"); |
|
| 28 | 4 | } elseif (!$this->isValid($scheme)) { |
|
| 29 | 3 | throw new \InvalidArgumentException("Scheme must conform to RFC3986 specification"); |
|
| 30 | } |
||
| 31 | 1 | } |
|
| 32 | |||
| 50 |