Copied!

Abstract base class representing a mime email's header.

The base class sets up the header's consumer for parsing, sets the name of
the header, and calls the consumer to parse the header's value.

AbstractHeader::getConsumer is an abstract method that must be overridden to
return an appropriate Consumer\AbstractConsumer type.

Abstract
Methods
public __construct(ZBateson\MailMimeParser\Header\Consumer\ConsumerService $consumerService, $name, $value)
 

Assigns the header's name and raw value, then calls getConsumer and
setParseHeaderValue to extract a parsed value.

public __toString() : string
public getName()
public getParts()
public getRawValue()
public getValue()
Properties
protected $name
 
protected $parts
 
protected $rawValue
Methods
protected abstract getConsumer(ZBateson\MailMimeParser\Header\Consumer\ConsumerService $consumerService)
 

Returns the header's Consumer

protected setParseHeaderValue(ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer $consumer)
 

Calls the consumer and assigns the parsed parts to member variables.

The default implementation assigns the returned value to $this->part.

© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration