| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 1 | public function __construct |
|
| 36 | ( |
||
| 37 | string $class, |
||
| 38 | string $property, |
||
| 39 | string $expected, |
||
| 40 | string $got, |
||
| 41 | Exception $previous = null |
||
| 42 | ) |
||
| 43 | { |
||
| 44 | 1 | parent::__construct |
|
| 45 | ( |
||
| 46 | 'Tried to set an illegal property type for ' |
||
| 47 | 1 | . $class .'::$' . $property . '. Excpected ' . $expected |
|
| 48 | 1 | . ', got ' . $got, |
|
| 49 | 1 | 0, |
|
| 50 | 1 | $previous |
|
| 51 | ); |
||
| 52 | 1 | } |
|
| 53 | } |
||
| 54 |