1 | <?php |
||
6 | abstract class AbstractException extends Exception |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * Display if the value must be a string. |
||
11 | * |
||
12 | * @param string $key The key that is wrong. |
||
13 | * @return static |
||
14 | */ |
||
15 | public static function mustBeString($key) |
||
19 | |||
20 | /** |
||
21 | * Display if the value must be a bool. |
||
22 | * |
||
23 | * @param string $key The key that is wrong. |
||
24 | * @return static |
||
25 | */ |
||
26 | public static function mustBeBool($key) |
||
30 | |||
31 | /** |
||
32 | * Display if the value must be an int. |
||
33 | * |
||
34 | * @param string $key The key that is wrong. |
||
35 | * @return static |
||
36 | */ |
||
37 | public static function mustBeInt($key) |
||
41 | |||
42 | /** |
||
43 | * Display if an array is empty. |
||
44 | * |
||
45 | * @return static |
||
46 | */ |
||
47 | public static function arrayEmpty() |
||
51 | } |
||
52 |