| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | trait StringifiesBoundariesFromDateTimeInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param DateTimeInterface|string|null $from |
||
| 11 | * @param DateTimeInterface|string|null $to |
||
| 12 | * @param string $fromBound |
||
| 13 | * @param string $toBound |
||
| 14 | */ |
||
| 15 | public function __construct($from = null, $to = null, $fromBound = '[', $toBound = ')') |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param $boundary |
||
| 25 | * @return string|null |
||
| 26 | */ |
||
| 27 | protected function stringifyBoundary($boundary): ?string |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | abstract protected function getBoundaryFormat(): string; |
||
| 40 | } |
||
| 41 |