Constructs and returns HeaderPart objects.

author Zaahid Bateson
package MailMimeParser

 Methods

Sets up dependencies.

__construct(\ZBateson\MbWrapper\MbWrapper $charsetConverter) 

Parameters

$charsetConverter

\ZBateson\MbWrapper\MbWrapper

Initializes and returns a new AddressGroupPart

newAddressGroupPart(array $addresses, string $name = '') : \ZBateson\MailMimeParser\Header\Part\AddressGroupPart

Parameters

$addresses

array

$name

string

Returns

\ZBateson\MailMimeParser\Header\Part\AddressGroupPart

Initializes and returns a new AddressPart.

newAddressPart(string $name, string $email) : \ZBateson\MailMimeParser\Header\Part\AddressPart

Parameters

$name

string

$email

string

Returns

\ZBateson\MailMimeParser\Header\Part\AddressPart

Initializes and returns a new CommentPart.

newCommentPart(string $value) : \ZBateson\MailMimeParser\Header\Part\CommentPart

Parameters

$value

string

Returns

\ZBateson\MailMimeParser\Header\Part\CommentPart

Initializes and returns a new DatePart

newDatePart(string $value) : \ZBateson\MailMimeParser\Header\Part\DatePart

Parameters

$value

string

Returns

\ZBateson\MailMimeParser\Header\Part\DatePart

Creates and returns a default HeaderPart for this factory, allowing subclass factories for specialized HeaderParts.

newInstance(string $value) : \ZBateson\MailMimeParser\Header\Part\HeaderPart

The default implementation returns a new Token.

Parameters

$value

string

Returns

\ZBateson\MailMimeParser\Header\Part\HeaderPart

Initializes and returns a new LiteralPart.

newLiteralPart(string $value) : \ZBateson\MailMimeParser\Header\Part\LiteralPart

Parameters

$value

string

Returns

\ZBateson\MailMimeParser\Header\Part\LiteralPart

Initializes and returns a new MimeLiteralPart.

newMimeLiteralPart(string $value) : \ZBateson\MailMimeParser\Header\Part\MimeLiteralPart

Parameters

$value

string

Returns

\ZBateson\MailMimeParser\Header\Part\MimeLiteralPart

Initializes and returns a new ParameterPart.

newParameterPart(string $name, string $value, string $language = null) : \ZBateson\MailMimeParser\Header\Part\ParameterPart

Parameters

$name

string

$value

string

$language

string

Returns

\ZBateson\MailMimeParser\Header\Part\ParameterPart

Initializes and returns a new ReceivedDomainPart.

newReceivedDomainPart(string $name, string $value, string $ehloName = null, string $hostName = null, string $hostAddress = null) : \ZBateson\MailMimeParser\Header\Part\ReceivedDomainPart

Parameters

$name

string

$value

string

$ehloName

string

$hostName

string

$hostAddress

string

Returns

\ZBateson\MailMimeParser\Header\Part\ReceivedDomainPart

Initializes and returns a new ReceivedPart.

newReceivedPart(string $name, string $value) : \ZBateson\MailMimeParser\Header\Part\ReceivedPart

Parameters

$name

string

$value

string

Returns

\ZBateson\MailMimeParser\Header\Part\ReceivedPart

Instantiates and returns a SplitParameterToken with the given name.

newSplitParameterToken(string $name) : \ZBateson\MailMimeParser\Header\Part\SplitParameterToken

Parameters

$name

string

Returns

\ZBateson\MailMimeParser\Header\Part\SplitParameterToken

Initializes and returns a new Token.

newToken(string $value) : \ZBateson\MailMimeParser\Header\Part\Token

Parameters

$value

string

Returns

\ZBateson\MailMimeParser\Header\Part\Token

 Properties

 

passed to HeaderPart constructors for converting strings in HeaderPart::convertEncoding

$charsetConverter : \ZBateson\MbWrapper\MbWrapper

Default