| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class UnexpectedTypeException extends LogicException |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Exception thrown when a value is not of an expected type. |
||
| 14 | * |
||
| 15 | * @param mixed $value Actual value. |
||
| 16 | * @param string $expected The name of the expected type. |
||
| 17 | * @param int $code The Exception code. |
||
| 18 | * @param \Throwable $previous The previous throwable used for the exception chaining. |
||
| 19 | */ |
||
| 20 | public function __construct($value, string $expected, int $code = 0, Throwable $previous = null) |
||
| 31 |