1 | <?php |
||
17 | final class CarbonPresenter |
||
18 | { |
||
19 | /** |
||
20 | * @param \DateTimeInterface $dateTime |
||
21 | * @return array |
||
22 | * @throws \InvalidArgumentException |
||
23 | * @throws \Symfony\Component\Translation\Exception\InvalidArgumentException |
||
24 | */ |
||
25 | public function fromDateTime(\DateTimeInterface $dateTime): iterable |
||
29 | |||
30 | /** |
||
31 | * @param string $dateTimeString |
||
32 | * @return iterable |
||
33 | * @throws \InvalidArgumentException |
||
34 | * @throws \Symfony\Component\Translation\Exception\InvalidArgumentException |
||
35 | */ |
||
36 | public function fromString(string $dateTimeString): iterable |
||
40 | |||
41 | /** |
||
42 | * @param Carbon $carbon |
||
43 | * @return iterable |
||
44 | * @throws \Symfony\Component\Translation\Exception\InvalidArgumentException |
||
45 | */ |
||
46 | public function fromCarbon(Carbon $carbon): iterable |
||
51 | } |
||
52 |