interface HeaderInterface

A MIME Header.

Methods

void
setBody(mixed$body)

Sets the body.

mixed
getBody()

Gets the body.

void
setCharset(string$charset)

No description

string|null
getCharset()

No description

void
setLanguage(string$lang)

No description

string|null
getLanguage()

No description

string
getName()

No description

void
setMaxLineLength(int$lineLength)

No description

int
getMaxLineLength()

No description

string
toString()

Gets this Header rendered as a compliant string.

string
getBodyAsString()

Gets the header's body, prepared for folding into a final header value.

Details

void setBody(mixed$body)

Sets the body.

The type depends on the Header concrete class.

Parameters

mixed $body

Return Value

void

mixed getBody()

Gets the body.

The return type depends on the Header concrete class.

Return Value

mixed

void setCharset(string$charset)

Parameters

string $charset

Return Value

void

string|null getCharset()

Return Value

string|null

void setLanguage(string$lang)

Parameters

string $lang

Return Value

void

string|null getLanguage()

Return Value

string|null

string getName()

Return Value

string

void setMaxLineLength(int$lineLength)

Parameters

int $lineLength

Return Value

void

int getMaxLineLength()

Return Value

int

string toString()

Gets this Header rendered as a compliant string.

Return Value

string

string getBodyAsString()

Gets the header's body, prepared for folding into a final header value.

This is not necessarily RFC 2822 compliant since folding white space is not added at this stage (see {@link toString()} for that).

Return Value

string