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