Метод |
Описание |
|
__construct ( string $name, mixed $func = null ) : FunctionGenerator |
Constructor |
|
__toString ( ) : string |
Print method |
|
addArgument ( string $name, mixed $value = null, string $type = null ) : FunctionGenerator |
Add a function argument |
|
addArguments ( array $args ) : FunctionGenerator |
Add function arguments |
|
addParameter ( string $name, mixed $value = null, string $type = null ) : FunctionGenerator |
Add a function argument (synonym method for convenience) |
|
addParameters ( array $args ) : FunctionGenerator |
Add function arguments (synonym method for convenience) |
|
appendToBody ( string $body, boolean $newline = true ) : FunctionGenerator |
Append to the function body |
|
factory ( string $name, mixed $func = null ) : FunctionGenerator |
Static method to instantiate the function generator object and return itself
to facilitate chaining methods together. |
|
getArgument ( string $name ) : array |
Get a function argument |
|
getArgumentNames ( ) : array |
Get the function arguments |
|
getArguments ( ) : array |
Get the function arguments |
|
getBody ( ) : string |
Get the function body |
|
getDesc ( ) : string |
Get the function description |
|
getDocblock ( ) : DocblockGenerator |
Access the docblock generator object |
|
getIndent ( ) : string |
Get the function indent |
|
getName ( ) : string |
Get the function name |
|
getParameter ( string $name ) : array |
Get a function argument (synonym method for convenience) |
|
getParameterNames ( ) : array |
Get the function arguments (synonym method for convenience) |
|
getParameters ( ) : array |
Get the function arguments (synonym method for convenience) |
|
isClosure ( ) : boolean |
Get the function closure flag |
|
render ( boolean $ret = false ) : mixed |
Render method |
|
setBody ( string $body, boolean $newline = true ) : FunctionGenerator |
Set the function body |
|
setClosure ( boolean $closure = false ) : FunctionGenerator |
Set the function closure flag |
|
setDesc ( string $desc = null ) : FunctionGenerator |
Set the function description |
|
setDocblock ( DocblockGenerator $docblock ) : ClassGenerator |
Set the docblock generator object |
|
setIndent ( string $indent = null ) : FunctionGenerator |
Set the function indent |
|
setName ( string $name ) : FunctionGenerator |
Set the function name |
|