| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 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 | return "'$this'::$timerangeTypeName"; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $boundary |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | protected function transformBoundary(string $boundary): string |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | protected function getBoundaryFormat(): string |
||
| 38 | } |
||
| 39 | } |
||
| 40 |