| Conditions | 2 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function __construct($value, $expectedType, $code = 0, \Exception $previous = null) |
||
| 14 | { |
||
| 15 | $message = sprintf('Argument of type "%s" expected but "%s" was given.', |
||
| 16 | $expectedType, |
||
| 17 | is_object($value) ? get_class($value) : gettype($value) |
||
| 18 | ); |
||
| 19 | |||
| 20 | parent::__construct($message, $code, $previous); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |