| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function __construct(PropertyContract $property, $value) |
||
| 11 | { |
||
| 12 | $value = $this->resolveTypeFromValue($value); |
||
| 13 | |||
| 14 | $expectedTypes = $this->resolveExpectedTypes($property); |
||
| 15 | |||
| 16 | parent::__construct("Invalid type: expected {$property->getFqn()} to be of type {$expectedTypes}, instead got value `{$value}`."); |
||
| 17 | } |
||
| 41 |