\Pop\Code\Generator\TraitsBodyTrait

Body trait

Summary

Methods
Properties
Constants
setBody()
appendToBody()
indentBody()
getBody()
hasBody()
No public properties found
No constants found
No protected methods found
$body
N/A
No private methods found
No private properties found
N/A

Properties

$body

$body : string

Function body

Type

string

Methods

setBody()

setBody(string  $body, integer  $indent = 4) : \Pop\Code\Generator\Traits\BodyTrait

Set the function body

Parameters

string $body
integer $indent

Returns

\Pop\Code\Generator\Traits\BodyTrait

indentBody()

indentBody(integer  $indent) : \Pop\Code\Generator\Traits\BodyTrait

Append to the function body

Parameters

integer $indent

Returns

\Pop\Code\Generator\Traits\BodyTrait

getBody()

getBody() : string

Get the function body

Returns

string

hasBody()

hasBody() : boolean

Has method body

Returns

boolean