1 | <?php |
||
28 | class AddressGroupConsumer extends AddressBaseConsumer |
||
29 | { |
||
30 | /** |
||
31 | * Overridden to return patterns matching the beginning and end markers of a |
||
32 | * group address: colon and semi-colon (":" and ";") characters. |
||
33 | * |
||
34 | * @return string[] the patterns |
||
35 | */ |
||
36 | 2 | public function getTokenSeparators() |
|
40 | |||
41 | /** |
||
42 | * AddressGroupConsumer returns true if the passed token is a semi-colon. |
||
43 | * |
||
44 | * @param string $token |
||
45 | * @return boolean false |
||
46 | */ |
||
47 | 2 | protected function isEndToken($token) |
|
51 | |||
52 | /** |
||
53 | * AddressGroupConsumer returns true if the passed token is a colon. |
||
54 | * |
||
55 | * @param string $token |
||
56 | * @return boolean false |
||
57 | */ |
||
58 | 2 | protected function isStartToken($token) |
|
62 | |||
63 | /** |
||
64 | * Performs post-processing on parsed parts. |
||
65 | * |
||
66 | * AddressGroupConsumer returns an array with a single Part\AddressGroupPart |
||
67 | * element with all email addresses from this and any sub-groups. |
||
68 | * |
||
69 | * @param \ZBateson\MailMimeParser\Header\Part\HeaderPart[] $parts |
||
70 | * @return AddressGroupPart[]|array |
||
71 | */ |
||
72 | 2 | protected function processParts(array $parts) |
|
85 | } |
||
86 |