Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 0 |
1 | <?php |
||
20 | class IdHeader extends GenericHeader |
||
21 | { |
||
22 | /** |
||
23 | * Returns an IdBaseConsumer. |
||
24 | * |
||
25 | * @param ConsumerService $consumerService |
||
26 | * @return \ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer |
||
27 | */ |
||
28 | 6 | protected function getConsumer(ConsumerService $consumerService) |
|
29 | { |
||
30 | 6 | return $consumerService->getIdBaseConsumer(); |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * Synonym for getValue(). |
||
35 | * |
||
36 | * @return string|null |
||
37 | */ |
||
38 | public function getId() |
||
39 | { |
||
40 | return $this->getValue(); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Returns all IDs parsed for a multi-id header like References or |
||
45 | * In-Reply-To. |
||
46 | * |
||
47 | * @return string[] |
||
48 | */ |
||
49 | 4 | public function getIds() |
|
52 | } |
||
53 | } |
||
54 |