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