| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class InvalidTypeException extends \Exception implements InvalidTypeExceptionContract |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * NotAnTypeBaseException constructor. |
||
| 22 | * |
||
| 23 | * @param string $var_name Name of the variable (to be included in error message) |
||
| 24 | * @param string|array $allowed_types Array of allowed types [Type::*] |
||
| 25 | * @param string $type Current type of the $value |
||
| 26 | */ |
||
| 27 | public function __construct(string $var_name, string $type, array $allowed_types) |
||
| 44 |