Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 5 |
Ratio | 50 % |
Changes | 0 |
1 | <?php |
||
53 | public function offset(/*# int */ $offset) |
||
54 | { |
||
55 | $clause = &$this->getClause('LIMIT'); |
||
56 | View Code Duplication | if (!empty($clause)) { |
|
57 | $clause[1] = (int) $offset; |
||
58 | } else { |
||
59 | $clause = [-1, (int) $offset]; |
||
60 | } |
||
61 | return $this; |
||
62 | } |
||
63 | |||
101 |