Conditions | 3 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | private function configureWindow(SelectQuery $query, array $orderBy, int $limit = 0) |
||
25 | { |
||
26 | if (!empty($orderBy)) { |
||
27 | $decorator = new AliasDecorator($query, 'where', $this->getAlias()); |
||
28 | $decorator->orderBy($orderBy); |
||
29 | } |
||
30 | |||
31 | if ($limit !== 0) { |
||
32 | $query->limit($limit); |
||
33 | } |
||
34 | } |
||
35 | |||
42 | } |