BodyTrait
Body trait
Tags
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