Parses a single group of addresses (as a named-group part of an address
header).
Finds addresses using its AddressConsumer sub-consumer separated by commas,
and ends processing once a semi-colon is found.
Prior to returning to its calling client, AddressGroupConsumer constructs a
single Part\AddressGroupPart object filling it with all located addresses,
and returns it.
The AddressGroupConsumer extends AddressBaseConsumer to define start/end
tokens, token separators, and construct a Part\AddressGroupPart to return.
- author Zaahid Bateson
Methods |
public getTokenSeparators() : array Overridden to return patterns matching the beginning and end markers of a
|
Properties |
Methods |
protected isEndToken(string $token) : bool AddressGroupConsumer returns true if the passed token is a semi-colon. |
protected isStartToken(string $token) : bool AddressGroupConsumer returns true if the passed token is a colon. |
protected processParts(array $parts) : array Performs post-processing on parsed parts. AddressGroupConsumer returns an array with a single Part\AddressGroupPart
|
Methods |