1 | <?php |
||
19 | trait SortAwareTrait |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * @var SortInterface |
||
24 | */ |
||
25 | private $sort; |
||
26 | |||
27 | /** |
||
28 | * Returns the sort object. |
||
29 | * @return Sort the sorting object. If this is false, it means the sorting is disabled. |
||
30 | */ |
||
31 | 1 | public function getSort() |
|
40 | |||
41 | /** |
||
42 | * Set sort |
||
43 | * @param SortInterface $sort |
||
44 | * @return static |
||
45 | */ |
||
46 | public function setSort(SortInterface $sort) |
||
52 | |||
53 | abstract public function getModel(); |
||
54 | } |
||
55 |