Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function __construct(int $startOffset, int $finishOffset) |
||
36 | { |
||
37 | if ($startOffset < 0) { |
||
38 | throw new Exception("Negative start offset in token position: {$startOffset}"); |
||
39 | } |
||
40 | if ($finishOffset < $startOffset) { |
||
41 | throw new Exception("Finish offset lesser than start in token position: {$finishOffset} < {$startOffset}"); |
||
42 | } |
||
43 | $this->startOffset = $startOffset; |
||
44 | $this->finishOffset = $finishOffset; |
||
45 | } |
||
77 |