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