| Total Complexity | 8 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait OffsetBuilder { |
||
| 8 | private null|int|OptionalValue $offset = null; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @return null|int |
||
| 12 | */ |
||
| 13 | protected function getOffset(): ?int { |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param null|int|OptionalValue $offset |
||
| 22 | * @return $this |
||
| 23 | */ |
||
| 24 | public function offset($offset = 0) { |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $query |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | protected function buildOffset(string $query): string { |
||
| 49 |