Copied!

Constructs and returns IHeaderPart objects.

CloneableInstantiable
Methods
public __construct(Psr\Log\LoggerInterface $logger, ZBateson\MbWrapper\MbWrapper $charsetConverter)
public newAddress(array $nameParts, array $emailParts) : ZBateson\MailMimeParser\Header\Part\AddressPart
 

Initializes and returns a new AddressPart.

  • param \HeaderPart[] $nameParts
  • param \HeaderPart[] $emailParts
public newAddressGroupPart(array $nameParts, array $addressesAndGroups) : ZBateson\MailMimeParser\Header\Part\AddressGroupPart
 

Initializes and returns a new AddressGroupPart

  • param \HeaderPart[] $nameParts
  • param \AddressPart[]|\AddressGroupPart[] $addressesAndGroups
public newCommentPart(array $children) : ZBateson\MailMimeParser\Header\Part\CommentPart
 

Initializes and returns a new CommentPart.

  • param \HeaderPart[] $children
public newContainerPart(array $children) : ZBateson\MailMimeParser\Header\Part\ContainerPart
 

Initializes and returns a new ContainerPart.

  • param \HeaderPart[] $children
public newDatePart(array $children) : ZBateson\MailMimeParser\Header\Part\DatePart
 

Initializes and returns a new DatePart

  • param \HeaderPart[] $children
public newInstance(string $value) : ZBateson\MailMimeParser\Header\IHeaderPart
 

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

The default implementation returns a new Token

public newMimeToken(string $value) : ZBateson\MailMimeParser\Header\Part\MimeToken
 

Initializes and returns a new MimeToken.

public newParameterPart(array $nameParts, ZBateson\MailMimeParser\Header\Part\ContainerPart $valuePart) : ZBateson\MailMimeParser\Header\Part\ParameterPart
 

Initializes and returns a new ParameterPart.

  • param \HeaderPart[] $nameParts
public newQuotedLiteralPart(array $parts) : ZBateson\MailMimeParser\Header\Part\QuotedLiteralPart
 

Initializes and returns a new QuotedLiteralPart.

  • param \HeaderPart[] $parts
public newReceivedDomainPart(string $name, array $children) : ZBateson\MailMimeParser\Header\Part\ReceivedDomainPart
 

Initializes and returns a new ReceivedDomainPart.

  • param \HeaderPart[] $children
public newReceivedPart(string $name, array $children) : ZBateson\MailMimeParser\Header\Part\ReceivedPart
 

Initializes and returns a new ReceivedPart.

  • param \HeaderPart[] $children
public newSplitParameterPart(array $children) : ZBateson\MailMimeParser\Header\Part\SplitParameterPart
 

Instantiates and returns a SplitParameterPart.

  • param \ParameterPart[] $children
public newSubjectToken(string $value) : ZBateson\MailMimeParser\Header\Part\SubjectToken
 

Initializes and returns a new SubjectToken.

public newToken(string $value, bool $isLiteral = false, bool $preserveSpaces = false) : ZBateson\MailMimeParser\Header\Part\Token
 

Initializes and returns a new Token.

Properties
protected ZBateson\MbWrapper\MbWrapper $charsetConverter
 
  • var \MbWrapper $charsetConverter passed to IHeaderPart constructors for converting strings in IHeaderPart::convertEncoding
protected Psr\Log\LoggerInterface $logger
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration