1 | <?php |
||
7 | class SortException extends \Exception |
||
8 | { |
||
9 | /** |
||
10 | * The exception to be thrown when an invalid direction is supplied as the argument. |
||
11 | * |
||
12 | * @param string $direction |
||
13 | * @return static |
||
14 | */ |
||
15 | public static function invalidDirectionSupplied($direction) |
||
23 | |||
24 | /** |
||
25 | * The exception to be thrown when trying to sort by an invalid relation type. |
||
26 | * |
||
27 | * @param string$relation |
||
28 | * @param string $type |
||
29 | * @return static |
||
30 | * @internal param string $direction |
||
31 | */ |
||
32 | public static function wrongRelationToSort($relation, $type) |
||
39 | } |
||
40 |