| Conditions | 4 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 7 |
| Ratio | 58.33 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function limit(/*# int */ $count, /*# int */ $offset = 0) |
||
| 38 | { |
||
| 39 | $clause = &$this->getClause('LIMIT'); |
||
| 40 | View Code Duplication | if ($count || $offset) { |
|
| 41 | if (!empty($clause)) { |
||
| 42 | $clause[0] = (int) $count; |
||
| 43 | } else { |
||
| 44 | $clause = [(int) $count, (int) $offset]; |
||
| 45 | } |
||
| 46 | } |
||
| 47 | return $this; |
||
| 48 | } |
||
| 49 | |||
| 101 |