Methods
Add a parameter pair
addParameter(string $name, string $value) : \Zend\Mail\Header\ContentType
Parameters
$name
string
$value
string
Exceptions
Returns
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
Get a parameter by name
getParameter(string $name) : null | string
Parameters
$name
string
Returns
null
string
Get all parameters
getParameters() : array
Retrieve the content type
getType() : string
Remove a named parameter
removeParameter(string $name) : bool
Parameters
$name
string
Returns
bool
Set header encoding
setEncoding(string $encoding) : \Zend\Mail\Header\self
Parameters
$encoding
string
Returns
\Zend\Mail\Header\self
Cast to string
toString() : string
Returns in form of "NAME: VALUE"
Returns
string
Properties
$parameters
$parameters : array
Constants