Documentation

BodyTrait

Body trait

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

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

version
5.0.0

Table of Contents

Properties

$body  : string|null
Function body

Methods

appendToBody()  : static
Append to the function body
getBody()  : string|null
Get the function body
hasBody()  : bool
Has method body
indentBody()  : static
Append to the function body
setBody()  : static
Set the function body

Properties

$body

Function body

protected string|null $body = null

Methods

appendToBody()

Append to the function body

public appendToBody(string $body) : static
Parameters
$body : string
Return values
static

getBody()

Get the function body

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

hasBody()

Has method body

public hasBody() : bool
Return values
bool

indentBody()

Append to the function body

public indentBody(int $indent) : static
Parameters
$indent : int
Return values
static

setBody()

Set the function body

public setBody(string $body[, int $indent = 4 ]) : static
Parameters
$body : string
$indent : int = 4
Return values
static

        
On this page

Search results