| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function __construct($start, $end) |
||
| 19 | { |
||
| 20 | if (!is_int($start)) { |
||
| 21 | throw new InvalidArgumentException(); |
||
| 22 | } |
||
| 23 | |||
| 24 | if (!is_int($end)) { |
||
| 25 | throw new InvalidArgumentException(); |
||
| 26 | } |
||
| 27 | |||
| 28 | if ($start > $end) { |
||
| 29 | throw new InvalidRangeException(); |
||
| 30 | } |
||
| 31 | |||
| 32 | parent::__construct($start, $end, 1); |
||
| 33 | } |
||
| 34 | } |