Simple service provider for consumer singletons.

author Zaahid Bateson
package MailMimeParser

 Methods

Sets up the HeaderPartFactory member variable.

__construct(\ZBateson\MailMimeParser\Header\Part\HeaderPartFactory $partFactory, \ZBateson\MailMimeParser\Header\Part\MimeLiteralPartFactory $mimeLiteralPartFactory) 

Parameters

$partFactory

\ZBateson\MailMimeParser\Header\Part\HeaderPartFactory

$mimeLiteralPartFactory

\ZBateson\MailMimeParser\Header\Part\MimeLiteralPartFactory

Returns the AddressBaseConsumer singleton instance.

getAddressBaseConsumer() : \ZBateson\MailMimeParser\Header\Consumer\AddressBaseConsumer

Returns

\ZBateson\MailMimeParser\Header\Consumer\AddressBaseConsumer

Returns the AddressConsumer singleton instance.

getAddressConsumer() : \ZBateson\MailMimeParser\Header\Consumer\AddressConsumer

Returns

\ZBateson\MailMimeParser\Header\Consumer\AddressConsumer

Returns the AddressGroupConsumer singleton instance.

getAddressGroupConsumer() : \ZBateson\MailMimeParser\Header\Consumer\AddressGroupConsumer

Returns

\ZBateson\MailMimeParser\Header\Consumer\AddressGroupConsumer

Returns the CommentConsumer singleton instance.

getCommentConsumer() : \ZBateson\MailMimeParser\Header\Consumer\CommentConsumer

Returns

\ZBateson\MailMimeParser\Header\Consumer\CommentConsumer

Returns the DateConsumer singleton instance.

getDateConsumer() : \ZBateson\MailMimeParser\Header\Consumer\DateConsumer

Returns

\ZBateson\MailMimeParser\Header\Consumer\DateConsumer

Returns the GenericConsumer singleton instance.

getGenericConsumer() : \ZBateson\MailMimeParser\Header\Consumer\GenericConsumer

Returns

\ZBateson\MailMimeParser\Header\Consumer\GenericConsumer

Returns the IdBaseConsumer singleton instance.

getIdBaseConsumer() : \ZBateson\MailMimeParser\Header\Consumer\IdBaseConsumer

Returns

\ZBateson\MailMimeParser\Header\Consumer\IdBaseConsumer

Returns the IdConsumer singleton instance.

getIdConsumer() : \ZBateson\MailMimeParser\Header\Consumer\IdConsumer

Returns

\ZBateson\MailMimeParser\Header\Consumer\IdConsumer

Returns the ParameterConsumer singleton instance.

getParameterConsumer() : \ZBateson\MailMimeParser\Header\Consumer\ParameterConsumer

Returns

\ZBateson\MailMimeParser\Header\Consumer\ParameterConsumer

Returns the QuotedStringConsumer singleton instance.

getQuotedStringConsumer() : \ZBateson\MailMimeParser\Header\Consumer\QuotedStringConsumer

Returns

\ZBateson\MailMimeParser\Header\Consumer\QuotedStringConsumer

Returns the ReceivedConsumer singleton instance.

getReceivedConsumer() : \ZBateson\MailMimeParser\Header\Consumer\ReceivedConsumer

Returns

\ZBateson\MailMimeParser\Header\Consumer\ReceivedConsumer

Returns the consumer instance corresponding to the passed part name of a Received header.

getSubReceivedConsumer(string $partName) : \ZBateson\MailMimeParser\Header\Consumer\Received\FromConsumer

Parameters

$partName

string

Returns

\ZBateson\MailMimeParser\Header\Consumer\Received\FromConsumer

Returns the SubjectConsumer singleton instance.

getSubjectConsumer() : \ZBateson\MailMimeParser\Header\Consumer\SubjectConsumer

Returns

\ZBateson\MailMimeParser\Header\Consumer\SubjectConsumer

 Properties

 

used for GenericConsumer instances.

$mimeLiteralPartFactory : \ZBateson\MailMimeParser\Header\Part\MimeLiteralPartFactory

Default

 

the HeaderPartFactory instance used to create HeaderParts.

$partFactory : \ZBateson\MailMimeParser\Header\Part\HeaderPartFactory

Default

 

Received\GenericReceivedConsumer[]| Received\ReceivedDateConsumer[] an array of sub-received header consumer instances.

$receivedConsumers : array<mixed,\ZBateson\MailMimeParser\Header\Consumer\Received\DomainConsumer>

Default

array('from' => null, 'by' => null, 'via' => null, 'with' => null, 'id' => null, 'for' => null, 'date' => null)