| 1 | <?php |
||
| 4 | trait LimitBuilder { |
||
| 5 | /** @var int */ |
||
| 6 | private $limit = null; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @return int |
||
| 10 | */ |
||
| 11 | protected function getLimit() { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param int $limit |
||
| 17 | * @return $this |
||
| 18 | */ |
||
| 19 | public function limit($limit) { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $query |
||
| 26 | * @param null $offset |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | protected function buildLimit($query, $offset = null) { |
||
| 39 | } |
||
| 40 |