Function_
class Function_ extends AbstractObject implements IdAble
Function represents a resolver provided by a Module.
A function always evaluates against a parent object and is given a set of named arguments.
Properties
$lastQuery | from AbstractObject |
Methods
No description
Arguments accepted by the function, if any.
A doc string for the function, if any.
A unique identifier for this Function.
The name of the function.
The type returned by the function.
Returns the function with the provided argument
Returns the function with the given doc string.
Returns the function with the given source map.
Details
in
AbstractObject at line 13
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)
No description
in
AbstractObject at line 19
protected null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
at line 21
array
args()
Arguments accepted by the function, if any.
at line 30
string
description()
A doc string for the function, if any.
at line 39
AbstractId
id()
A unique identifier for this Function.
at line 48
string
name()
The name of the function.
at line 57
TypeDef
returnType()
The type returned by the function.
at line 66
SourceMap
sourceMap()
The location of this function declaration.
at line 75
Function_
withArg(string $name, TypeDef $typeDef, string|null $description = '', Json|null $defaultValue = null, string|null $defaultPath = '', array|null $ignore = null, SourceMap|null $sourceMap = null)
Returns the function with the provided argument
at line 108
Function_
withDescription(string $description)
Returns the function with the given doc string.
at line 118
Function_
withSourceMap(SourceMap $sourceMap)
Returns the function with the given source map.