Total Complexity | 6 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 54.55% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class DateHeader extends AbstractHeader |
||
20 | { |
||
21 | /** |
||
22 | * Returns a DateConsumer. |
||
23 | * |
||
24 | * @param ConsumerService $consumerService |
||
25 | * @return \ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer |
||
26 | */ |
||
27 | 4 | protected function getConsumer(ConsumerService $consumerService) |
|
28 | { |
||
29 | 4 | return $consumerService->getDateConsumer(); |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * Convenience method returning the part's DateTime object, or null if the |
||
34 | * date could not be parsed. |
||
35 | * |
||
36 | * @return \DateTime |
||
37 | */ |
||
38 | 3 | public function getDateTime() |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * Returns a DateTimeImmutable for the part's DateTime object, or null if |
||
48 | * the date could not be parsed. |
||
49 | * |
||
50 | * @return \DateTimeImmutable |
||
51 | */ |
||
52 | public function getDateTimeImmutable() |
||
61 |