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 | * @return int |
19 | */ |
20 | protected function getMin(): mixed |
21 | { |
22 | return $this->min ?? PHP_INT_MIN; |
23 | } |
24 | |
25 | /** |
26 | * getMax |
27 | * @return int |
28 | */ |
29 | protected function getMax(): mixed |
30 | { |
31 | return $this->max ?? PHP_INT_MAX; |
32 | } |
33 | } |