We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | 2 | public function __construct($minimum, $maximum, bool $inclusive = true) |
|
| 55 | { |
||
| 56 | 2 | if ($this->toComparable($minimum) >= $this->toComparable($maximum)) { |
|
| 57 | 2 | throw new ComponentException(stringify($minimum).' cannot be less than or equals to '.stringify($maximum)); |
|
| 58 | } |
||
| 59 | |||
| 60 | $this->minimum = $minimum; |
||
| 61 | $this->maximum = $maximum; |
||
| 62 | $this->inclusive = $inclusive; |
||
| 63 | } |
||
| 78 |