BodyTrait
Body trait
Tags
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
staticgetBody()
Get the function body
public
getBody() : string|null
Return values
string|nullhasBody()
Has method body
public
hasBody() : bool
Return values
boolindentBody()
Append to the function body
public
indentBody(int $indent) : static
Parameters
- $indent : int
Return values
staticsetBody()
Set the function body
public
setBody(string $body[, int $indent = 4 ]) : static
Parameters
- $body : string
- $indent : int = 4