| Conditions | 3 |
| Paths | 3 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 3.576 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | 6 | private function ensureIsValidDelay($delay) |
|
| 46 | { |
||
| 47 | 6 | if (!\is_int($delay)) { |
|
| 48 | throw new \InvalidArgumentException(sprintf('Delay must be an integer. Got: %s', \gettype($delay))); |
||
| 49 | } |
||
| 50 | 6 | if ($delay < 0) { |
|
| 51 | throw new \InvalidArgumentException(sprintf('Delay must be greater or equal to 0. Got: %d', $delay)); |
||
| 52 | } |
||
| 55 |