| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function __construct($start, $rawString, PhoneNumber $number) |
||
| 34 | { |
||
| 35 | if ($start < 0) { |
||
| 36 | throw new \InvalidArgumentException("Start index must be >= 0."); |
||
| 37 | } |
||
| 38 | |||
| 39 | if ($rawString === null) { |
||
| 40 | throw new \NullPointerException; |
||
| 41 | } |
||
| 42 | |||
| 43 | $this->start = $start; |
||
| 44 | $this->rawString = $rawString; |
||
| 45 | $this->number = $number; |
||
| 46 | } |
||
| 47 | |||
| 89 |