Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3.0987 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | 1 | public function getSQL(): string |
|
15 | { |
||
16 | 1 | $update = parent::getSQL(); |
|
17 | |||
18 | 1 | $order = count($this->order) |
|
19 | ? "\nORDER BY " . $this->buildOrderTerms() |
||
20 | 1 | : ''; // no order terms |
|
21 | |||
22 | 1 | $limit = $this->limit !== null |
|
23 | ? "\nLIMIT {$this->limit}" |
||
24 | 1 | : ''; // no limit |
|
25 | |||
26 | 1 | return "{$update}{$order}{$limit}"; |
|
27 | } |
||
29 |