| Conditions | 4 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function setMax($max) : NumberDoc |
||
| 41 | { |
||
| 42 | if (null === $max || (!is_float($max) && !is_int($max))) { |
||
|
1 ignored issue
–
show
|
|||
| 43 | throw new \InvalidArgumentException('max must be either a float or an integer.'); |
||
| 44 | } |
||
| 45 | |||
| 46 | $this->max = $max; |
||
| 47 | |||
| 48 | return $this; |
||
| 49 | } |
||
| 99 |