Total Complexity | 6 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class TimestampRange extends Range |
||
14 | { |
||
15 | use StringifiesBoundariesFromDateTimeInterface; |
||
16 | |||
17 | /** |
||
18 | * @param string $boundary |
||
19 | * @return CarbonImmutable |
||
20 | */ |
||
21 | protected function transformBoundary(string $boundary): CarbonImmutable |
||
22 | { |
||
23 | return CarbonImmutable::parse(str_replace('"', '', $boundary)); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | protected function getBoundaryFormat(): string |
||
32 | } |
||
33 | |||
34 | public function forSql(): string |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | public function __toString() |
||
53 |