Conditions | 2 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function __construct( |
||
15 | private int|float $min, |
||
16 | private int|float $max, |
||
17 | private $boundaries = true, |
||
18 | ?string $message = null |
||
19 | ) { |
||
20 | $this->message = $message ?? sprintf( |
||
21 | self::MESSAGE, |
||
22 | $this->min, |
||
23 | $this->max, |
||
24 | !$this->boundaries ? 'not' : '' |
||
25 | ); |
||
26 | parent::__construct($message); |
||
27 | } |
||
38 |