| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | protected function validateOptions() |
||
| 23 | { |
||
| 24 | if ($this->limit <= 0) { |
||
| 25 | $message = sprintf( |
||
| 26 | 'limit expects a strictly positive TTL. Got %d.', |
||
| 27 | $this->limit |
||
| 28 | ); |
||
| 29 | throw new InvalidArgumentException($message); |
||
| 30 | } |
||
| 31 | if ($this->space == '') { |
||
| 32 | throw new InvalidArgumentException("Space should be defined"); |
||
| 33 | } |
||
| 58 |