| Total Complexity | 11 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | trait OffsetBuilder { |
||
| 9 | private null|int|OptionalValue $offset = null; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @return null|int |
||
| 13 | */ |
||
| 14 | protected function getOffset(): ?int { |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param null|int|OptionalValue $offset |
||
| 29 | * @return $this |
||
| 30 | */ |
||
| 31 | public function offset($offset = 0) { |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $query |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | protected function buildOffset(string $query): string { |
||
| 63 |