Class ContentType

Summary

Fully Qualified Name: Laminas\Mail\Header\ContentType
Implements: UnstructuredInterface

Description

Methods

Name Description Defined By
addParameter() Add a parameter pair ContentType
fromString() ContentType
getEncoding() ContentType
getFieldName() ContentType
getFieldValue() ContentType
getParameter() Get a parameter by name ContentType
getParameters() Get all parameters ContentType
getType() Retrieve the content type ContentType
removeParameter() Remove a named parameter ContentType
setEncoding() ContentType
setType() Set the content type ContentType
toString() ContentType

Method Details

addParameter()

Add a parameter pair

Parameter Name Type Description
$name string
$value string

Returns: \ContentType

fromString()

Parameter Name Type Description
$headerLine

Returns: void

getEncoding()

Returns: void

getFieldName()

Returns: void

getFieldValue()

Parameter Name Type Description
$format

Returns: void

getParameter()

Get a parameter by name

Parameter Name Type Description
$name string

Returns: null|string

getParameters()

Get all parameters

Returns: array

getType()

Retrieve the content type

Returns: string

removeParameter()

Remove a named parameter

Parameter Name Type Description
$name string

Returns: bool

setEncoding()

Parameter Name Type Description
$encoding

Returns: void

setType()

Set the content type

Parameter Name Type Description
$type string

Returns: \ContentType

toString()

Returns: void

Top