ConsumerService
Simple service provider for consumer singletons.
Tags
Table of Contents
- $mimeLiteralPartFactory : MimeLiteralPartFactory
- $partFactory : HeaderPartFactory
- $receivedConsumers : array<string|int, DomainConsumer>|array<string|int, GenericReceivedConsumer>|array<string|int, ReceivedDateConsumer>
- __construct() : mixed
- Sets up the HeaderPartFactory member variable.
- getAddressBaseConsumer() : AddressBaseConsumer
- Returns the AddressBaseConsumer singleton instance.
- getAddressConsumer() : AddressConsumer
- Returns the AddressConsumer singleton instance.
- getAddressGroupConsumer() : AddressGroupConsumer
- Returns the AddressGroupConsumer singleton instance.
- getCommentConsumer() : CommentConsumer
- Returns the CommentConsumer singleton instance.
- getDateConsumer() : DateConsumer
- Returns the DateConsumer singleton instance.
- getGenericConsumer() : GenericConsumer
- Returns the GenericConsumer singleton instance.
- getIdBaseConsumer() : IdBaseConsumer
- Returns the IdBaseConsumer singleton instance.
- getIdConsumer() : IdConsumer
- Returns the IdConsumer singleton instance.
- getParameterConsumer() : ParameterConsumer
- Returns the ParameterConsumer singleton instance.
- getQuotedStringConsumer() : QuotedStringConsumer
- Returns the QuotedStringConsumer singleton instance.
- getReceivedConsumer() : ReceivedConsumer
- Returns the ReceivedConsumer singleton instance.
- getSubjectConsumer() : SubjectConsumer
- Returns the SubjectConsumer singleton instance.
- getSubReceivedConsumer() : FromConsumer
- Returns the consumer instance corresponding to the passed part name of a Received header.
Properties
$mimeLiteralPartFactory
protected
MimeLiteralPartFactory
$mimeLiteralPartFactory
$partFactory
protected
HeaderPartFactory
$partFactory
$receivedConsumers
protected
array<string|int, DomainConsumer>|array<string|int, GenericReceivedConsumer>|array<string|int, ReceivedDateConsumer>
$receivedConsumers
= ['from' => null, 'by' => null, 'via' => null, 'with' => null, 'id' => null, 'for' => null, 'date' => null]
Methods
__construct()
Sets up the HeaderPartFactory member variable.
public
__construct(HeaderPartFactory $partFactory, MimeLiteralPartFactory $mimeLiteralPartFactory) : mixed
Parameters
- $partFactory : HeaderPartFactory
- $mimeLiteralPartFactory : MimeLiteralPartFactory
Return values
mixed —getAddressBaseConsumer()
Returns the AddressBaseConsumer singleton instance.
public
getAddressBaseConsumer() : AddressBaseConsumer
Return values
AddressBaseConsumer —getAddressConsumer()
Returns the AddressConsumer singleton instance.
public
getAddressConsumer() : AddressConsumer
Return values
AddressConsumer —getAddressGroupConsumer()
Returns the AddressGroupConsumer singleton instance.
public
getAddressGroupConsumer() : AddressGroupConsumer
Return values
AddressGroupConsumer —getCommentConsumer()
Returns the CommentConsumer singleton instance.
public
getCommentConsumer() : CommentConsumer
Return values
CommentConsumer —getDateConsumer()
Returns the DateConsumer singleton instance.
public
getDateConsumer() : DateConsumer
Return values
DateConsumer —getGenericConsumer()
Returns the GenericConsumer singleton instance.
public
getGenericConsumer() : GenericConsumer
Return values
GenericConsumer —getIdBaseConsumer()
Returns the IdBaseConsumer singleton instance.
public
getIdBaseConsumer() : IdBaseConsumer
Return values
IdBaseConsumer —getIdConsumer()
Returns the IdConsumer singleton instance.
public
getIdConsumer() : IdConsumer
Return values
IdConsumer —getParameterConsumer()
Returns the ParameterConsumer singleton instance.
public
getParameterConsumer() : ParameterConsumer
Return values
ParameterConsumer —getQuotedStringConsumer()
Returns the QuotedStringConsumer singleton instance.
public
getQuotedStringConsumer() : QuotedStringConsumer
Return values
QuotedStringConsumer —getReceivedConsumer()
Returns the ReceivedConsumer singleton instance.
public
getReceivedConsumer() : ReceivedConsumer
Return values
ReceivedConsumer —getSubjectConsumer()
Returns the SubjectConsumer singleton instance.
public
getSubjectConsumer() : SubjectConsumer
Return values
SubjectConsumer —getSubReceivedConsumer()
Returns the consumer instance corresponding to the passed part name of a Received header.
public
getSubReceivedConsumer(string $partName) : FromConsumer
Parameters
- $partName : string