Documentation

BodyTrait

Body trait

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

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

license

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

version
4.1.0

Table of Contents

$body  : string
Function body
appendToBody()  : BodyTrait
Append to the function body
getBody()  : string
Get the function body
hasBody()  : bool
Has method body
indentBody()  : BodyTrait
Append to the function body
setBody()  : BodyTrait
Set the function body

Properties

$body

Function body

protected string $body = null

Methods

appendToBody()

Append to the function body

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

getBody()

Get the function body

public getBody() : string
Return values
string

hasBody()

Has method body

public hasBody() : bool
Return values
bool

indentBody()

Append to the function body

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

setBody()

Set the function body

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

Search results