Copied!

Extends HeaderPartFactory to instantiate MimeTokens for its newInstance method.

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

Initializes and returns a new AddressPart.

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

Initializes and returns a new AddressGroupPart

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

Initializes and returns a new CommentPart.

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

Initializes and returns a new ContainerPart.

  • param \HeaderPart[] $children
public ZBateson\MailMimeParser\Header\Part\HeaderPartFactory::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 MimeToken.

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

Initializes and returns a new MimeToken.

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

Initializes and returns a new ParameterPart.

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

Initializes and returns a new QuotedLiteralPart.

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

Initializes and returns a new ReceivedDomainPart.

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

Initializes and returns a new ReceivedPart.

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

Instantiates and returns a SplitParameterPart.

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

Initializes and returns a new SubjectToken.

public ZBateson\MailMimeParser\Header\Part\HeaderPartFactory::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 ZBateson\MailMimeParser\Header\Part\HeaderPartFactory::$charsetConverter
 
  • var \MbWrapper $charsetConverter passed to IHeaderPart constructors for converting strings in IHeaderPart::convertEncoding
protected Psr\Log\LoggerInterface ZBateson\MailMimeParser\Header\Part\HeaderPartFactory::$logger
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration