todo Allow setting date from DateTime, Zend\Date, or string
package Default

 Methods

__construct()

__construct($value = ''

Parameters

$value

Factory to generate a header object from a string

fromString(string $headerLine) 
Static
inherited_from \Zend\Mail\Header\HeaderInterface::fromString()

Parameters

$headerLine

Get header encoding

getEncoding() 
inherited_from \Zend\Mail\Header\HeaderInterface::getEncoding()

Retrieve header name

getFieldName() 
inherited_from \Zend\Mail\Header\HeaderInterface::getFieldName()

Retrieve header value

getFieldValue(boolean $format = \Zend\Mail\Header\HeaderInterface::FORMAT_RAW
inherited_from \Zend\Mail\Header\HeaderInterface::getFieldValue()

Parameters

$format

Set header encoding

setEncoding(string $encoding) 
inherited_from \Zend\Mail\Header\HeaderInterface::setEncoding()

Parameters

$encoding

Cast to string

toString() 

Returns in form of "NAME: VALUE"

inherited_from \Zend\Mail\Header\HeaderInterface::toString()

Serialize collection of Received headers to string

toStringMultipleHeaders(array $headers) : string
inherited_from \Zend\Mail\Header\MultipleHeadersInterface::toStringMultipleHeaders()

Parameters

$headers

array

Exceptions

\Zend\Mail\Header\Exception\RuntimeException

Returns

string

 Properties

 

$value

$value : string

Default