| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class Combiner implements DateFormatter |
||
| 12 | { |
||
| 13 | use Chaining; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var array<DateFormatter> Date formatters. |
||
| 17 | */ |
||
| 18 | private $dateFormatters; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param array<DateFormatter> $dateFormatters Date formatters. |
||
| 22 | */ |
||
| 23 | 2 | public function __construct(array $dateFormatters) |
|
| 26 | 2 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @param iterable<DateTimeInterface> $dates Dates to format. |
||
| 30 | * @return CharTree The dates formatted by all the date formatters in the combiner. |
||
| 31 | */ |
||
| 32 | 2 | protected function applyCurrent(iterable $dates): CharTree |
|
| 43 |