| 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) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Sets failed key name. |
||
| 32 | * |
||
| 33 | * @param string $key |
||
| 34 | * |
||
| 35 | * @return static |
||
| 36 | */ |
||
| 37 | public function setFailedKey($key) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Returns failed key name. |
||
| 46 | * |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getFailedKey() |
||
| 53 | } |
||
| 54 |