$name
$name : string
Name
Namespace 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 |
setAsAbstract(boolean $abstract = true) : \Pop\Code\Generator\Traits\AbstractFinalTrait
Set the method abstract flag
boolean | $abstract |
setAsFinal(boolean $final = true) : \Pop\Code\Generator\Traits\AbstractFinalTrait
Set the method final flag
boolean | $final |
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 |
setVisibility(string $visibility = 'public') : \Pop\Code\Generator\AbstractClassElementGenerator
Set the visibility
string | $visibility |
setAsPublic() : \Pop\Code\Generator\AbstractClassElementGenerator
Set the visibility to public
setAsProtected() : \Pop\Code\Generator\AbstractClassElementGenerator
Set the visibility to protected
setAsPrivate() : \Pop\Code\Generator\AbstractClassElementGenerator
Set the visibility to public
setAsStatic(boolean $static = true) : \Pop\Code\Generator\AbstractClassElementGenerator
Set the static flag
boolean | $static |
setIndent(string $indent) : \Pop\Code\Generator\AbstractGenerator
Set the indent
string | $indent |