Method |
Description |
|
__construct ( string $name, string $visibility = 'public', boolean $static = false ) : MethodGenerator |
Constructor |
|
__toString ( ) : string |
Print method |
|
addArgument ( string $name, mixed $value = null, string $type = null ) : MethodGenerator |
Add a method argument |
|
addArguments ( array $args ) : MethodGenerator |
Add method arguments |
|
addParameter ( string $name, mixed $value = null, string $type = null ) : MethodGenerator |
Add a method argument (synonym method for convenience) |
|
addParameters ( array $args ) : MethodGenerator |
Add method arguments (synonym method for convenience) |
|
appendToBody ( string $body, boolean $newline = true ) : MethodGenerator |
Append to the method body |
|
factory ( string $name, string $visibility = 'public', boolean $static = false ) : MethodGenerator |
Static method to instantiate the method generator object and return itself
to facilitate chaining methods together. |
|
getArgument ( string $name ) : array |
Get a method argument |
|
getArguments ( ) : array |
Get the method arguments |
|
getBody ( ) : string |
Get the method body |
|
getDesc ( ) : string |
Get the method description |
|
getDocblock ( ) : DocblockGenerator |
Access the docblock generator object |
|
getIndent ( ) : string |
Get the method indent |
|
getName ( ) : string |
Get the method name |
|
getParameter ( string $name ) : array |
Get a method argument (synonym method for convenience) |
|
getParameters ( ) : array |
Get the method arguments (synonym method for convenience) |
|
getVisibility ( ) : string |
Get the method visibility |
|
isAbstract ( ) : boolean |
Get the method abstract flag |
|
isFinal ( ) : boolean |
Get the method final flag |
|
isInterface ( ) : boolean |
Get the method interface flag |
|
isStatic ( ) : boolean |
Get the method static flag |
|
render ( boolean $ret = false ) : mixed |
Render method |
|
setAbstract ( boolean $abstract = false ) : MethodGenerator |
Set the method abstract flag |
|
setBody ( string $body, boolean $newline = true ) : MethodGenerator |
Set the method body |
|
setDesc ( string $desc = null ) : MethodGenerator |
Set the method description |
|
setDocblock ( DocblockGenerator $docblock ) : ClassGenerator |
Set the docblock generator object |
|
setFinal ( boolean $final = false ) : MethodGenerator |
Set the method final flag |
|
setIndent ( string $indent = null ) : MethodGenerator |
Set the method indent |
|
setInterface ( boolean $interface = false ) : MethodGenerator |
Set the method interface flag |
|
setName ( string $name ) : MethodGenerator |
Set the method name |
|
setStatic ( boolean $static = false ) : MethodGenerator |
Set the method static flag |
|
setVisibility ( string $visibility = 'public' ) : MethodGenerator |
Set the method visibility |
|