Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3.0261 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
26 | 5 | public function __construct($value, $isOneOfTheValues = false, $isStrict = true) |
|
27 | { |
||
28 | 5 | if ($isOneOfTheValues && !is_array($value)) { |
|
29 | throw new \InvalidArgumentException('if $isOneOfTheValues is true, $value must be an array'); |
||
30 | } |
||
31 | |||
32 | 5 | $this->value = $value; |
|
33 | 5 | $this->isOneOfTheValues = $isOneOfTheValues; |
|
34 | 5 | $this->isStrict = $isStrict; |
|
35 | 5 | } |
|
36 | |||
63 |