Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function isSortAscending(): bool |
||
35 | { |
||
36 | if (false === $this->isSorted()) { |
||
37 | throw new \RuntimeException(sprintf( |
||
38 | 'Cannot determine if sort is ascending when the field ("%s") is not sorted.', |
||
39 | $this->name |
||
40 | )); |
||
41 | } |
||
42 | |||
43 | return $this->gridContext->getOrderings()[$this->name] === 'asc'; |
||
44 | } |
||
45 | |||
66 |