Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class CouldNotConvertException extends ApieException implements LocalizationableException |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $wantedType; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $displayValue; |
||
23 | |||
24 | public function __construct(string $wantedType, string $displayValue) |
||
25 | { |
||
26 | $this->wantedType = $wantedType; |
||
27 | $this->displayValue = $displayValue; |
||
28 | parent::__construct(429, 'must be one of "' . $wantedType . '" ("' . $displayValue . '" given)'); |
||
29 | } |
||
30 | |||
31 | public function getI18n(): LocalizationInfo |
||
36 | ); |
||
37 | } |
||
39 |