| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 55 | 12 | private function validateNumberOfCells() |
|
| 56 | { |
||
| 57 | 12 | $count = $this->count(); |
|
| 58 | 12 | if (self::MINIMUM_CELLS <= $count) { |
|
| 59 | 10 | return; |
|
| 60 | } |
||
| 61 | |||
| 62 | 2 | throw new \InvalidArgumentException(sprintf( |
|
| 63 | 2 | 'At last %d cells are required, but there are only %d in collection %s', |
|
| 64 | 2 | self::MINIMUM_CELLS, |
|
| 65 | $count, |
||
| 66 | get_class($this) |
||
| 67 | )); |
||
| 68 | } |
||
| 69 | } |
||
| 70 |