FunctionLike
trait FunctionLike
internal |
Methods
setBody(string $code, array|null $args = null)
No description
string
getBody()
No description
addBody(string $code, array|null $args = null)
No description
setParameters(array $val)
No description
array
getParameters()
No description
addParameter(string $name, $defaultValue = null)
No description
removeParameter(string $name)
No description
setVariadic(bool $state = true)
No description
bool
isVariadic()
No description
setReturnType(string|null $type)
No description
Type|string|null
getReturnType(bool $asObject = false)
No description
setReturnReference(bool $state = true)
No description
bool
getReturnReference()
No description
setReturnNullable(bool $state = true)
No description
bool
isReturnNullable()
No description
bool
Details
at line 33
FunctionLike
setBody(string $code, array|null $args = null)
No description
at line 42
string
getBody()
No description
at line 48
FunctionLike
addBody(string $code, array|null $args = null)
No description
at line 58
FunctionLike
setParameters(array $val)
No description
at line 71
array
getParameters()
No description
at line 80
Parameter
addParameter(string $name, $defaultValue = null)
No description
at line 94
FunctionLike
removeParameter(string $name)
No description
at line 101
FunctionLike
setVariadic(bool $state = true)
No description
at line 108
bool
isVariadic()
No description
at line 114
FunctionLike
setReturnType(string|null $type)
No description
at line 124
Type|string|null
getReturnType(bool $asObject = false)
No description
at line 132
FunctionLike
setReturnReference(bool $state = true)
No description
at line 139
bool
getReturnReference()
No description
at line 145
FunctionLike
setReturnNullable(bool $state = true)
No description
at line 152
bool
isReturnNullable()
No description
at line 159
bool
getReturnNullable()
deprecated
deprecated
No description