MimeTokenPartFactory
extends HeaderPartFactory
in package
Extends HeaderPartFactory to instantiate MimeTokens for its newInstance method.
Tags
Table of Contents
- $charsetConverter : MbWrapper
- $logger : LoggerInterface
- __construct() : mixed
- newAddress() : AddressPart
- Initializes and returns a new AddressPart.
- newAddressGroupPart() : AddressGroupPart
- Initializes and returns a new AddressGroupPart
- newCommentPart() : CommentPart
- Initializes and returns a new CommentPart.
- newContainerPart() : ContainerPart
- Initializes and returns a new ContainerPart.
- newDatePart() : DatePart
- Initializes and returns a new DatePart
- newInstance() : IHeaderPart
- Creates and returns a MimeToken.
- newMimeToken() : MimeToken
- Initializes and returns a new MimeToken.
- newParameterPart() : ParameterPart
- Initializes and returns a new ParameterPart.
- newQuotedLiteralPart() : QuotedLiteralPart
- Initializes and returns a new QuotedLiteralPart.
- newReceivedDomainPart() : ReceivedDomainPart
- Initializes and returns a new ReceivedDomainPart.
- newReceivedPart() : ReceivedPart
- Initializes and returns a new ReceivedPart.
- newSplitParameterPart() : SplitParameterPart
- Instantiates and returns a SplitParameterPart.
- newSubjectToken() : SubjectToken
- Initializes and returns a new SubjectToken.
- newToken() : Token
- Initializes and returns a new Token.
Properties
$charsetConverter
protected
MbWrapper
$charsetConverter
passed to IHeaderPart constructors for converting strings in IHeaderPart::convertEncoding
$logger
protected
LoggerInterface
$logger
Methods
__construct()
public
__construct(LoggerInterface $logger, MbWrapper $charsetConverter) : mixed
Parameters
- $logger : LoggerInterface
- $charsetConverter : MbWrapper
Return values
mixed —newAddress()
Initializes and returns a new AddressPart.
public
newAddress(array<string|int, HeaderPart> $nameParts, array<string|int, HeaderPart> $emailParts) : AddressPart
Parameters
- $nameParts : array<string|int, HeaderPart>
- $emailParts : array<string|int, HeaderPart>
Return values
AddressPart —newAddressGroupPart()
Initializes and returns a new AddressGroupPart
public
newAddressGroupPart(array<string|int, HeaderPart> $nameParts, array<string|int, AddressPart>|array<string|int, AddressGroupPart> $addressesAndGroups) : AddressGroupPart
Parameters
- $nameParts : array<string|int, HeaderPart>
- $addressesAndGroups : array<string|int, AddressPart>|array<string|int, AddressGroupPart>
Return values
AddressGroupPart —newCommentPart()
Initializes and returns a new CommentPart.
public
newCommentPart(array<string|int, HeaderPart> $children) : CommentPart
Parameters
- $children : array<string|int, HeaderPart>
Return values
CommentPart —newContainerPart()
Initializes and returns a new ContainerPart.
public
newContainerPart(array<string|int, HeaderPart> $children) : ContainerPart
Parameters
- $children : array<string|int, HeaderPart>
Return values
ContainerPart —newDatePart()
Initializes and returns a new DatePart
public
newDatePart(array<string|int, HeaderPart> $children) : DatePart
Parameters
- $children : array<string|int, HeaderPart>
Return values
DatePart —newInstance()
Creates and returns a MimeToken.
public
newInstance(string $value) : IHeaderPart
Parameters
- $value : string
Return values
IHeaderPart —newMimeToken()
Initializes and returns a new MimeToken.
public
newMimeToken(string $value) : MimeToken
Parameters
- $value : string
Return values
MimeToken —newParameterPart()
Initializes and returns a new ParameterPart.
public
newParameterPart(array<string|int, HeaderPart> $nameParts, ContainerPart $valuePart) : ParameterPart
Parameters
- $nameParts : array<string|int, HeaderPart>
- $valuePart : ContainerPart
Return values
ParameterPart —newQuotedLiteralPart()
Initializes and returns a new QuotedLiteralPart.
public
newQuotedLiteralPart(array<string|int, HeaderPart> $parts) : QuotedLiteralPart
Parameters
- $parts : array<string|int, HeaderPart>
Return values
QuotedLiteralPart —newReceivedDomainPart()
Initializes and returns a new ReceivedDomainPart.
public
newReceivedDomainPart(string $name, array<string|int, HeaderPart> $children) : ReceivedDomainPart
Parameters
- $name : string
- $children : array<string|int, HeaderPart>
Return values
ReceivedDomainPart —newReceivedPart()
Initializes and returns a new ReceivedPart.
public
newReceivedPart(string $name, array<string|int, HeaderPart> $children) : ReceivedPart
Parameters
- $name : string
- $children : array<string|int, HeaderPart>
Return values
ReceivedPart —newSplitParameterPart()
Instantiates and returns a SplitParameterPart.
public
newSplitParameterPart(array<string|int, ParameterPart> $children) : SplitParameterPart
Parameters
- $children : array<string|int, ParameterPart>
Return values
SplitParameterPart —newSubjectToken()
Initializes and returns a new SubjectToken.
public
newSubjectToken(string $value) : SubjectToken
Parameters
- $value : string
Return values
SubjectToken —newToken()
Initializes and returns a new Token.
public
newToken(string $value[, bool $isLiteral = false ][, bool $preserveSpaces = false ]) : Token
Parameters
- $value : string
- $isLiteral : bool = false
- $preserveSpaces : bool = false