1 | <?php |
||
29 | class SubjectConsumer extends GenericConsumer |
||
30 | { |
||
31 | /** |
||
32 | * Returns an empty array |
||
33 | * |
||
34 | * @return AbstractConsumer[] the sub-consumers |
||
35 | */ |
||
36 | 2 | protected function getSubConsumers() |
|
40 | |||
41 | /** |
||
42 | * Returns an array of \ZBateson\MailMimeParser\Header\Part\HeaderPart for |
||
43 | * the current token on the iterator. |
||
44 | * |
||
45 | * Overridden from AbstractConsumer to remove special filtering for |
||
46 | * backslash escaping, which also seems to not apply to Subject headers at |
||
47 | * least in ThunderBird's implementation. |
||
48 | * |
||
49 | * @param Iterator $tokens |
||
50 | * @return \ZBateson\MailMimeParser\Header\Part\HeaderPart[]|array |
||
51 | */ |
||
52 | 2 | protected function getTokenParts(Iterator $tokens) |
|
56 | |||
57 | /** |
||
58 | * Overridden to not split out backslash characters and its next character |
||
59 | * as a special case defined in AbastractConsumer |
||
60 | * |
||
61 | * @return string the regex pattern |
||
62 | */ |
||
63 | 2 | protected function getTokenSplitPattern() |
|
68 | } |
||
69 |