$docblock
$docblock : \Pop\Code\Generator\DocblockGenerator
Docblock generator object
Method generator code class
$docblock : \Pop\Code\Generator\DocblockGenerator
Docblock generator object
setStatic(boolean $static = false) : \Pop\Code\Generator\MethodGenerator
Set the method static flag
boolean | $static |
setAbstract(boolean $abstract = false) : \Pop\Code\Generator\MethodGenerator
Set the method abstract flag
boolean | $abstract |
setFinal(boolean $final = false) : \Pop\Code\Generator\MethodGenerator
Set the method final flag
boolean | $final |
setInterface(boolean $interface = false) : \Pop\Code\Generator\MethodGenerator
Set the method interface flag
boolean | $interface |
setDesc(string $desc = null) : \Pop\Code\Generator\MethodGenerator
Set the method description
string | $desc |
setIndent(string $indent = null) : \Pop\Code\Generator\MethodGenerator
Set the method indent
string | $indent |
setName(string $name) : \Pop\Code\Generator\MethodGenerator
Set the method name
string | $name |
setBody(string $body, boolean $newline = true) : \Pop\Code\Generator\MethodGenerator
Set the method body
string | $body | |
boolean | $newline |
appendToBody(string $body, boolean $newline = true) : \Pop\Code\Generator\MethodGenerator
Append to the method body
string | $body | |
boolean | $newline |
setDocblock(\Pop\Code\Generator\DocblockGenerator $docblock) : \Pop\Code\Generator\MethodGenerator
Set the docblock generator object
\Pop\Code\Generator\DocblockGenerator | $docblock |
getDocblock() : \Pop\Code\Generator\DocblockGenerator
Access the docblock generator object
setVisibility(string $visibility = 'public') : \Pop\Code\Generator\MethodGenerator
Set the method visibility
string | $visibility |
addArgument(string $name, mixed $value = null, string $type = null) : \Pop\Code\Generator\MethodGenerator
Add a method argument
string | $name | |
mixed | $value | |
string | $type |
addArguments(array $args) : \Pop\Code\Generator\MethodGenerator
Add method arguments
array | $args |
addParameter(string $name, mixed $value = null, string $type = null) : \Pop\Code\Generator\MethodGenerator
Add a method argument (alias method for convenience)
string | $name | |
mixed | $value | |
string | $type |
addParameters(array $args) : \Pop\Code\Generator\MethodGenerator
Add method arguments (alias method for convenience)
array | $args |