Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | final class FormatterCombiner extends ChainableFormatter |
||
13 | { |
||
14 | /** |
||
15 | * @var DateFormatter[] Date formatters. |
||
16 | */ |
||
17 | private $dateFormatters; |
||
18 | |||
19 | /** |
||
20 | * @param DateFormatter[] $dateFormatters Date formatters. |
||
21 | * @param bool $filterUnique Whether the result should only contain unique words. |
||
22 | */ |
||
23 | 3 | public function __construct(array $dateFormatters, bool $filterUnique = true) |
|
32 | 3 | } |
|
33 | |||
34 | /** |
||
35 | * @param iterable<DateTimeInterface> $dates Dates to format. |
||
36 | * @return Traversable<string> The date formatted by all the date formatters in the formatter combiner. |
||
37 | */ |
||
38 | 3 | protected function applyCurrent(iterable $dates): Traversable |
|
45 |