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