Interface UnstructuredInterface

Summary

Fully Qualified Name: Zend\Mail\Header\UnstructuredInterface
Extends: HeaderInterface

Description

Marker interface for unstructured headers.

Methods

Name Description Defined By
fromString() Factory to generate a header object from a string HeaderInterface
getEncoding() Get header encoding HeaderInterface
getFieldName() Retrieve header name HeaderInterface
getFieldValue() Retrieve header value HeaderInterface
setEncoding() Set header encoding HeaderInterface
toString() Cast to string HeaderInterface

Method Details

fromString()

Factory to generate a header object from a string

Parameter Name Type Description
$headerLine string

Returns: static

getEncoding()

Get header encoding

Returns: string

getFieldName()

Retrieve header name

Returns: string

getFieldValue()

Retrieve header value

Parameter Name Type Description
$format bool Return

Returns: string

setEncoding()

Set header encoding

Parameter Name Type Description
$encoding string

Returns: $this

toString()

Cast to string

Returns in form of "NAME: VALUE"

Returns: string

Top