Documentation

PartContentTrait

Adds getContent()/setContent() convenience accessors on top of Pop\Mime\Part, which has no direct equivalents.

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

Methods

getContent()  : string|null
Get content
renderAsLines()  : array<string|int, mixed>
Render as an array of lines
setContent()  : static
Set content

Methods

getContent()

Get content

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

renderAsLines()

Render as an array of lines

public renderAsLines() : array<string|int, mixed>
Return values
array<string|int, mixed>

setContent()

Set content

public setContent(string $content) : static
Parameters
$content : string
Return values
static

        
On this page

Search results