RoutineInterface
interface RoutineInterface
Methods
Sets a collection of parameters
Checks whether a parameter exists
A quick way to add a parameter which is created from the given parameters
A quick way to add a parameter with description which is created from the given parameters
Returns a parameter by index or name
Returns a collection of parameters
Set true if a reference is returned of false if not
Returns whether a reference is returned
Sets the body for this
Returns the body
Details
at line line 14
$this
setParameters(array $parameters)
Sets a collection of parameters
Note: clears all parameters before setting the new ones
at line line 22
$this
addParameter(PhpParameter $parameter)
Adds a parameter
at line line 30
bool
hasParameter(string $name)
Checks whether a parameter exists
at line line 41
$this
addSimpleParameter(string $name, null|string $type = null, mixed $defaultValue = null)
A quick way to add a parameter which is created from the given parameters
at line line 53
$this
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
at line line 62
PhpParameter
getParameter(string|int $nameOrIndex)
Returns a parameter by index or name
at line line 72
$this
replaceParameter(int $position, PhpParameter $parameter)
Replaces a parameter at a given position
at line line 80
$this
removeParameter(int|string|PhpParameter $param)
Remove a parameter at a given position
at line line 87
array
getParameters()
Returns a collection of parameters
at line line 95
$this
setReferenceReturned(bool $bool)
Set true if a reference is returned of false if not
at line line 102
bool
isReferenceReturned()
Returns whether a reference is returned
at line line 110
$this
setBody(string $body)
Sets the body for this
at line line 117
string
getBody()
Returns the body