Method |
Description |
|
addParameter ( PhpParameter $parameter ) |
Adds a parameter |
|
addSimpleDescParameter ( string $name, null | string $type = null, null | string $typeDescription = null, mixed $defaultValue = null ) |
A quick way to add a parameter with description which is created from the given parameters |
|
addSimpleParameter ( string $name, null | string $type = null, mixed $defaultValue = null ) |
A quick way to add a parameter which is created from the given parameters |
|
getBody ( ) : string |
Returns the body |
|
getParameter ( string | integer $nameOrIndex ) : PhpParameter |
Returns a parameter by index or name |
|
getParameters ( ) : array |
Returns a collection of parameters |
|
hasParameter ( string $name ) : boolean |
Checks whether a parameter exists |
|
isReferenceReturned ( ) : boolean |
Returns whether a reference is returned |
|
removeParameter ( integer | string | PhpParameter $param ) |
Remove a parameter at a given position |
|
replaceParameter ( integer $position, PhpParameter $parameter ) |
Replaces a parameter at a given position |
|
setBody ( string $body ) |
Sets the body for this |
|
setParameters ( array $parameters ) |
Sets a collection of parameters |
|
setReferenceReturned ( boolean $bool ) |
Set true if a reference is returned of false if not |
|