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