MailMimeParser 3.0

HeaderPartFactory
in package

Constructs and returns IHeaderPart objects.

Tags
author

Zaahid Bateson

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 default IHeaderPart for this factory, allowing subclass factories for specialized IHeaderParts.
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

Methods

__construct()

public __construct(LoggerInterface $logger, MbWrapper $charsetConverter) : mixed
Parameters
$logger : LoggerInterface
$charsetConverter : MbWrapper
Return values
mixed

newInstance()

Creates and returns a default IHeaderPart for this factory, allowing subclass factories for specialized IHeaderParts.

public newInstance(string $value) : IHeaderPart

The default implementation returns a new Token

Parameters
$value : string
Return values
IHeaderPart

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
Return values
Token

Search results