Conditions | 4 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
24 | public function setMin($min) : NumberDoc |
||
25 | { |
||
26 | if (null === $min || (!is_float($min) && !is_int($min))) { |
||
1 ignored issue
–
show
|
|||
27 | throw new \InvalidArgumentException('min must be either a float or an integer.'); |
||
28 | } |
||
29 | |||
30 | $this->min = $min; |
||
31 | |||
32 | return $this; |
||
33 | } |
||
99 |