| 1 | <?php |
||
| 7 | class InvalidSettingsValue extends Exception |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Failed key name. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $failedKey; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Setting value is not definied in key's allowed values array. |
||
| 18 | * |
||
| 19 | * @param string $key |
||
| 20 | * |
||
| 21 | * @return static |
||
| 22 | */ |
||
| 23 | public static function settingNotAllowed($key) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Set failed key name. |
||
| 34 | * |
||
| 35 | * @param string $key |
||
| 36 | * |
||
| 37 | * @return static |
||
| 38 | */ |
||
| 39 | public function setFailedKey($key) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Return failed key name. |
||
| 48 | * |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | public function getFailedKey() |
||
| 55 | } |
||
| 56 |