Conditions | 4 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 13 |
Ratio | 100 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
14 | 14 | public function __construct($identifier, MapInterface $cells) |
|
15 | { |
||
16 | if ( |
||
17 | 14 | !is_scalar($identifier) || |
|
18 | 13 | (string) $cells->keyType() !== 'scalar' || |
|
19 | 14 | (string) $cells->valueType() !== CellInterface::class |
|
20 | ) { |
||
21 | 2 | throw new InvalidArgumentException; |
|
22 | } |
||
23 | |||
24 | 12 | $this->identifier = $identifier; |
|
25 | 12 | $this->cells = $cells; |
|
26 | 12 | } |
|
27 | |||
44 |