1 | <?php |
||
5 | class ColumnOrder |
||
6 | { |
||
7 | |||
8 | /** @var string */ |
||
9 | private $columnName; |
||
10 | |||
11 | /** @var bool */ |
||
12 | private $isAscOrdering; |
||
13 | |||
14 | /** |
||
15 | * ColumnOrder constructor. |
||
16 | * @param string $columnName the internal name of the column |
||
17 | * @param bool $isAscOrdering true if the ordering is ascending |
||
18 | */ |
||
19 | public function __construct($columnName, $isAscOrdering) |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | public function columnName() |
||
32 | |||
33 | /** |
||
34 | * @return bool |
||
35 | */ |
||
36 | public function isAscending() |
||
40 | |||
41 | /** |
||
42 | * @return bool |
||
43 | */ |
||
44 | public function isDescending() |
||
48 | } |