$docblock
$docblock : \Pop\Code\Generator\DocblockGenerator
Docblock generator object
Function generator code class
$docblock : \Pop\Code\Generator\DocblockGenerator
Docblock generator object
setClosure(boolean  $closure = false) : \Pop\Code\Generator\FunctionGenerator
                Set the function closure flag
| boolean | $closure | 
setDesc(string  $desc = null) : \Pop\Code\Generator\FunctionGenerator
                Set the function description
| string | $desc | 
setIndent(string  $indent = null) : \Pop\Code\Generator\FunctionGenerator
                Set the function indent
| string | $indent | 
setName(string  $name) : \Pop\Code\Generator\FunctionGenerator
                Set the function name
| string | $name | 
setBody(string $body, boolean $newline = true) : \Pop\Code\Generator\FunctionGenerator
Set the function body
| string | $body | |
| boolean | $newline | 
appendToBody(string $body, boolean $newline = true) : \Pop\Code\Generator\FunctionGenerator
Append to the function body
| string | $body | |
| boolean | $newline | 
setDocblock(\Pop\Code\Generator\DocblockGenerator  $docblock) : \Pop\Code\Generator\FunctionGenerator
                Set the docblock generator object
| \Pop\Code\Generator\DocblockGenerator | $docblock | 
getDocblock() : \Pop\Code\Generator\DocblockGenerator
Access the docblock generator object
addArgument(string $name, mixed $value = null, string $type = null) : \Pop\Code\Generator\FunctionGenerator
Add a function argument
| string | $name | |
| mixed | $value | |
| string | $type | 
addArguments(array  $args) : \Pop\Code\Generator\FunctionGenerator
                Add function arguments
| array | $args | 
addParameter(string $name, mixed $value = null, string $type = null) : \Pop\Code\Generator\FunctionGenerator
Add a function argument (alias method for convenience)
| string | $name | |
| mixed | $value | |
| string | $type | 
addParameters(array  $args) : \Pop\Code\Generator\FunctionGenerator
                Add function arguments (alias method for convenience)
| array | $args |