| 1 | <?php |
||
| 18 | class InvalidKey extends \InvalidArgumentException implements Exception { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Create a new instance of an exception when an empty key is provided. |
||
| 22 | * |
||
| 23 | * @since %VERSION% |
||
| 24 | * |
||
| 25 | * @param string $function The name of the calling function or method. |
||
| 26 | * |
||
| 27 | * @return InvalidKey |
||
| 28 | */ |
||
| 29 | public static function empty_key( $function ) { |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Create a new instance of an exception when a key is not found for the function. |
||
| 37 | * |
||
| 38 | * @since %VERSION% |
||
| 39 | * |
||
| 40 | * @param string $key The key that wasn't found. |
||
| 41 | * @param string $function The function where the key isn't found. |
||
| 42 | * |
||
| 43 | * @return static |
||
| 44 | */ |
||
| 45 | public static function not_found( $key, $function ) { |
||
| 50 | } |
||
| 51 |