| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 16 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 14 | public function applyOrder() | ||
| 15 |     { | ||
| 16 | if (count($this->order) == 0) | ||
| 17 |         { | ||
| 18 | return $this; | ||
| 19 | } | ||
| 20 | $orderSQL=''; | ||
| 21 | foreach ($this->order as $column => $direction) | ||
| 22 |         { | ||
| 23 | if ($orderSQL != "") $orderSQL.=','; | ||
| 24 | |||
| 25 | $orderSQL .= $column . ' ' . $direction; | ||
| 26 | } | ||
| 27 | $this->query = $this->query->order($orderSQL); | ||
|  | |||
| 28 | |||
| 29 | return $this; | ||
| 30 | } | ||
| 65 | } |