| 1 | <?php |
||
| 8 | class InvalidSortQuery extends InvalidQuery |
||
| 9 | { |
||
| 10 | /** @var string */ |
||
| 11 | protected $unknownSort; |
||
| 12 | |||
| 13 | /** @var \Illuminate\Support\Collection */ |
||
| 14 | protected $allowedSorts; |
||
| 15 | |||
| 16 | public function __construct(string $unknownSort, Collection $allowedSorts) |
||
| 26 | |||
| 27 | public static function sortsNotAllowed(string $unknownSort, Collection $allowedSorts) |
||
| 31 | |||
| 32 | public function getUnknownSort(): string |
||
| 36 | |||
| 37 | public function getAllowedSorts(): Collection |
||
| 41 | } |
||
| 42 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.