Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
18 | class DateConsumerService extends GenericConsumerService |
||
19 | { |
||
20 | /** |
||
21 | * Returns a Part\LiteralPart for the current token |
||
22 | * |
||
23 | * @param string $token the token |
||
24 | * @param bool $isLiteral set to true if the token represents a literal - |
||
25 | * e.g. an escaped token |
||
26 | */ |
||
27 | 21 | protected function getPartForToken(string $token, bool $isLiteral) : ?IHeaderPart |
|
28 | { |
||
29 | 21 | return $this->partFactory->newToken($token, true); |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * Constructs a single Part\DatePart of any parsed parts returning it in an |
||
34 | * array with a single element. |
||
35 | * |
||
36 | * @param \ZBateson\MailMimeParser\Header\IHeaderPart[] $parts The parsed |
||
37 | * parts. |
||
38 | * @return \ZBateson\MailMimeParser\Header\IHeaderPart[] Array of resulting |
||
39 | * final parts. |
||
40 | */ |
||
41 | 21 | protected function processParts(array $parts) : array |
|
44 | } |
||
45 | } |
||
46 |