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