| 1 | <?php |
||
| 15 | class Sorting |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $sort = []; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | public function get() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $field |
||
| 37 | * @param string $direction |
||
| 38 | */ |
||
| 39 | public function addField($field, $direction) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | public function sorting() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | public function fields() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return bool |
||
| 62 | */ |
||
| 63 | public function isEmpty() |
||
| 67 | } |
||
| 68 |