| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 13 | class TimeRange extends Range |
||
| 14 | { |
||
| 15 | use StringifiesBoundariesFromDateTimeInterface; |
||
| 16 | |||
| 17 | public function forSql(): string |
||
| 18 | { |
||
| 19 | $timerangeTypeName = config('postgres-range.timerange_typename'); |
||
| 20 | |||
| 21 | return "'$this'::$timerangeTypeName"; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $boundary |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | protected function transformBoundary(string $boundary): string |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | protected function getBoundaryFormat(): string |
||
| 39 | } |
||
| 40 | } |
||
| 41 |