Total Complexity | 6 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class UnexpectedValueException extends TypeError implements DtoException |
||
13 | { |
||
14 | /** |
||
15 | * The failing DTO property. |
||
16 | * |
||
17 | * @var DtoProperty |
||
18 | */ |
||
19 | protected $property; |
||
20 | |||
21 | /** |
||
22 | * Instantiate the class. |
||
23 | * |
||
24 | * @param DtoProperty $property |
||
25 | */ |
||
26 | 6 | public function __construct(DtoProperty $property) |
|
31 | 6 | } |
|
32 | |||
33 | /** |
||
34 | * Retrieve the exception message |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | 6 | protected function getExceptionMessage(): string |
|
58 |