| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 128 | public function __construct($start, $rawString, PhoneNumber $number) |
|
| 33 | { |
||
| 34 | 128 | if ($start < 0) { |
|
| 35 | 1 | throw new \InvalidArgumentException('Start index must be >= 0.'); |
|
| 36 | } |
||
| 37 | |||
| 38 | 128 | if ($rawString === null) { |
|
|
|
|||
| 39 | 1 | throw new \InvalidArgumentException('$rawString must be a string'); |
|
| 40 | } |
||
| 41 | |||
| 42 | 127 | $this->start = $start; |
|
| 43 | 127 | $this->rawString = $rawString; |
|
| 44 | 127 | $this->number = $number; |
|
| 45 | 127 | } |
|
| 88 |