| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 12 | public function __construct($value, array $allowedTypes) |
|
| 26 | { |
||
| 27 | 12 | $value = is_array($value) ?: var_export($value, true); |
|
| 28 | 12 | $this->message = |
|
| 29 | 12 | '[PhalueObjects] Argument ['.$value.'] of type ['.gettype($value). |
|
| 30 | 12 | '] is not a valid type.'.' The allowed type(s) are ['. |
|
| 31 | 12 | Csv::fromArray($allowedTypes)->getValue().']'; |
|
| 32 | 12 | } |
|
| 33 | } |
||
| 34 |