$name
$name : string
Name
Function generator class
$docblock : \Pop\Code\Generator\DocblockGenerator
Docblock generator object
setName(string $name) : \Pop\Code\Generator\Traits\NameTrait
Set the name
string | $name |
setDocblock(\Pop\Code\Generator\DocblockGenerator $docblock) : \Pop\Code\Generator\Traits\DocblockTrait
Set the docblock generator object
\Pop\Code\Generator\DocblockGenerator | $docblock |
getDocblock() : \Pop\Code\Generator\DocblockGenerator
Access the docblock generator object
setDesc(string $desc = null) : \Pop\Code\Generator\Traits\DocblockTrait
Set the docblock description
string | $desc |
addArgument(string $name, mixed $value = null, string $type = null) : \Pop\Code\Generator\Traits\FunctionTrait
Add an argument
string | $name | |
mixed | $value | |
string | $type |
addArguments(array $args) : \Pop\Code\Generator\Traits\FunctionTrait
Add arguments
array | $args |
addParameter(string $name, mixed $value = null, string $type = null) : \Pop\Code\Generator\Traits\FunctionTrait
Add an argument (alias method for convenience)
string | $name | |
mixed | $value | |
string | $type |
addParameters(array $args) : \Pop\Code\Generator\Traits\FunctionTrait
Add arguments (alias method for convenience)
array | $args |
setBody(string $body, integer $indent = 4) : \Pop\Code\Generator\Traits\BodyTrait
Set the function body
string | $body | |
integer | $indent |
appendToBody(string $body) : \Pop\Code\Generator\Traits\BodyTrait
Append to the function body
string | $body |
indentBody(integer $indent) : \Pop\Code\Generator\Traits\BodyTrait
Append to the function body
integer | $indent |
setIndent(string $indent) : \Pop\Code\Generator\AbstractGenerator
Set the indent
string | $indent |
setAsClosure(boolean $closure = false) : \Pop\Code\Generator\FunctionGenerator
Set the function closure flag
boolean | $closure |