Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| RangeInteger | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| getMin | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getMax | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @author: Doug Wilbourne (dougwilbourne@gmail.com) |
| 5 | */ |
| 6 | declare(strict_types=1); |
| 7 | |
| 8 | namespace pvc\struct\range; |
| 9 | |
| 10 | /** |
| 11 | * @class RangeElementInteger |
| 12 | * @extends Range<int> |
| 13 | */ |
| 14 | class RangeInteger extends Range |
| 15 | { |
| 16 | /** |
| 17 | * getMin |
| 18 | * |
| 19 | * @return int |
| 20 | */ |
| 21 | protected function getMin(): mixed |
| 22 | { |
| 23 | return $this->min ?? PHP_INT_MIN; |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * getMax |
| 28 | * |
| 29 | * @return int |
| 30 | */ |
| 31 | protected function getMax(): mixed |
| 32 | { |
| 33 | return $this->max ?? PHP_INT_MAX; |
| 34 | } |
| 35 | } |