| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 12 | class EncodingException extends InvalidArgumentException |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var mixed Value that caused this exception to be thrown |
||
| 16 | */ |
||
| 17 | protected $value; |
||
| 18 | |||
| 19 | 2 | public function __construct(string $message, $value) |
|
| 20 | { |
||
| 21 | 2 | $this->value = $value; |
|
| 22 | 2 | parent::__construct($message); |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Return the value that caused this exception to be thrown |
||
| 27 | * |
||
| 28 | * @return mixed |
||
| 29 | */ |
||
| 30 | 2 | public function getValue() |
|
| 33 | } |
||
| 34 | } |