Methods
Constructor
__construct(string $fieldName, string $fieldValue)
Parameters
$fieldName
string
Optional
$fieldValue
string
Optional
Factory to generate a header object from a string
fromString(string $headerLine) : \Zend\Mail\Header\self
Parameters
$headerLine
string
Exceptions
Returns
\Zend\Mail\Header\self
Get header encoding
getEncoding() : string
Retrieve header name
getFieldName() : string
Retrieve header value
getFieldValue(bool $format) : string
Parameters
$format
bool
Return the value in Mime::Encoded or in Raw format
Returns
string
Set header encoding
setEncoding(string $encoding) : \Zend\Mail\Header\self
Parameters
$encoding
string
Returns
\Zend\Mail\Header\self
Set header name
setFieldName(string $fieldName) : \Zend\Mail\Header\GenericHeader
Parameters
$fieldName
string
Exceptions
\Zend\Mail\Header\Exception\InvalidArgumentException; |
|
Returns
Set header value
setFieldValue(string $fieldValue) : \Zend\Mail\Header\GenericHeader
Parameters
$fieldValue
string
Exceptions
\Zend\Mail\Header\Exception\InvalidArgumentException; |
|
Returns
Cast to string
toString() : string
Returns in form of "NAME: VALUE"
Returns
string
Properties
Header encoding
$encoding : null | string
$fieldName
$fieldName : string
$fieldValue
$fieldValue : string
Constants