Zend\Mail\Header\ContentType
Synopsis
class ContentType
implements
HeaderInterface
{
- // members
- protected string $type;
- protected array $parameters;
- // methods
- public static void fromString()
- public void getFieldName()
- public void getFieldValue()
- public void setEncoding()
- public void getEncoding()
- public void toString()
- public ContentType setType()
- public string getType()
- public ContentType addParameter()
- public array getParameters()
- public null|string getParameter()
- public bool removeParameter()
Hierarchy
Implements
Constants
Name | Value |
---|---|
FORMAT_ENCODED | |
FORMAT_RAW |
Members
protected
- $parameters — array
- $type — string
Methods
public
- addParameter() — Add a parameter pair
- fromString()
- getEncoding()
- getFieldName()
- getFieldValue()
- getParameter() — Get a parameter by name
- getParameters() — Get all parameters
- getType() — Retrieve the content type
- removeParameter() — Remove a named parameter
- setEncoding()
- setType() — Set the content type
- toString()