Copied!

Represents a Content-ID, Message-ID, In-Reply-To or References header.

For a multi-id header like In-Reply-To or References, all IDs can be retrieved by calling {@see \IdHeader::getIds()}. Otherwise, to retrieve the first (or only) ID call {@see \IdHeader::getValue()}.

CloneableInstantiable
Methods
public ZBateson\MailMimeParser\Header\MimeEncodedHeader::__construct(ZBateson\MailMimeParser\Header\Part\MimeLiteralPartFactory $mimeLiteralPartFactory, ZBateson\MailMimeParser\Header\Consumer\ConsumerService $consumerService, $name, $value)
public ZBateson\MailMimeParser\Header\AbstractHeader::__toString() : string
public getId() : ?string
 

Returns the ID. Synonymous to calling getValue().

  • return string|null The ID
public getIds() : array
 

Returns all IDs parsed for a multi-id header like References or In-Reply-To.

  • return string[] An array of IDs
public ZBateson\MailMimeParser\Header\AbstractHeader::getName() : string
public ZBateson\MailMimeParser\Header\AbstractHeader::getParts() : array
 
  • return \IHeaderPart[]
public ZBateson\MailMimeParser\Header\AbstractHeader::getRawValue() : string
public ZBateson\MailMimeParser\Header\AbstractHeader::getValue() : ?string
Properties
protected ZBateson\MailMimeParser\Header\MimeEncodedHeader::$mimeLiteralPartFactory = NULL
 
  • var \MimeLiteralPartFactory for mime decoding.
protected ZBateson\MailMimeParser\Header\AbstractHeader::$name = NULL
 
  • var string the name of the header
protected ZBateson\MailMimeParser\Header\AbstractHeader::$parts = NULL
 
  • var \IHeaderPart[] the header's parts (as returned from the consumer)
protected ZBateson\MailMimeParser\Header\AbstractHeader::$rawValue = NULL
 
  • var string the raw value
Methods
protected getConsumer(ZBateson\MailMimeParser\Header\Consumer\ConsumerService $consumerService)
 

Returns an IdBaseConsumer.

  • return \Consumer\AbstractConsumer
protected ZBateson\MailMimeParser\Header\MimeEncodedHeader::setParseHeaderValue(ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer $consumer)
 

Mime-decodes any mime-encoded parts prior to invoking the passed consumer.

  • return static
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration