Parses the Address portion of an email address header, for an address part that contains both a name and an email address, e.g. "name" email@tld.com.
The address portion found within the '<' and '>' chars may contain comments and quoted portions.
- author Zaahid Bateson
CloneableInstantiable
Methods |
public __construct(Psr\Log\LoggerInterface $logger, ZBateson |
public getTokenSeparators() : array Overridden to return patterns matching the beginning/end part of an address in a name/address part ("<" and ">" chars).
|
Properties |
Methods |
protected isEndToken(string $token) : bool Returns true for the '>' char. |
protected isStartToken(string $token) : bool Returns true for the '<' char. |
protected processParts(array $parts) : array Returns a single {@see ZBateson\MailMimeParser\Header\Part\AddressPart} with its 'email' portion set, so an {@see AddressConsumerService} can identify it and create an {@see ZBateson\MailMimeParser\Header\Part\AddressPart} Address with both a name and email set.
|