Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class InvalidValueException extends InvalidArgumentException |
||
17 | { |
||
18 | private $reason; |
||
19 | |||
20 | public function __construct(string $reason, int $code = 0, \Throwable $previous = null) |
||
21 | { |
||
22 | $this->reason = $reason; |
||
23 | |||
24 | parent::__construct("Invalid value provided ({$reason}).", $code, $previous); |
||
25 | } |
||
26 | |||
27 | public function getReason(): string |
||
30 | } |
||
31 | } |
||
32 |