Documentation

CharsetAwareTrait

Restores AbstractMessage's charset/content-type field concept on top of Pop\Mime\Part, which only models Content-Type as a header.

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
5.0.0

Table of Contents

Properties

$charSet  : string|null
Character set

Methods

getCharSet()  : string|null
Get character set
setCharSet()  : static
Set character set
setContentType()  : static
Set Content-Type header

Properties

Methods

getCharSet()

Get character set

public getCharSet() : string|null
Return values
string|null

setCharSet()

Set character set

public setCharSet([string|null $charSet = null ]) : static
Parameters
$charSet : string|null = null
Return values
static

setContentType()

Set Content-Type header

public setContentType(string $contentType) : static
Parameters
$contentType : string
Return values
static

        
On this page

Search results