Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
36 | 9 | public function __construct(int $columns_count = -1) |
|
37 | { |
||
38 | 9 | if ($columns_count < -1) { |
|
39 | 3 | throw new Exception(sprintf('%s() expects the column count to be greater or equal to -1 %s given', __METHOD__, $columns_count)); |
|
40 | } |
||
41 | |||
42 | 6 | $this->columns_count = $columns_count; |
|
43 | 6 | } |
|
44 | |||
68 |