A function overload as defined in CSDL.
Functions are side-effect-free callables that return a value.
They may be bound to an entity type, entity set, singleton, or
the service root (unbound). Multiple overloads sharing the same
name may coexist; each overload is represented by a distinct
instance of this interface.
Actions are explicitly out of scope for this read-only interface
layer.
| Methods |
public
|
isBound(): bool
Whether this overload is bound to a specific type or set.
Whether this overload is bound to a specific type or set.
When true, the first parameter is the binding parameter and
constrains the context in which the function may be invoked.
Implemented by
|
#
|
public
|
isComposable(): bool
Whether the result of this function may be further composed
with URL path segments, system query options, or operations.
Whether the result of this function may be further composed
with URL path segments, system query options, or operations.
A composable function returning a collection can be followed
by $filter, $orderby, and similar; a composable function
returning a single entity can be followed by navigation
property segments.
Implemented by
|
#
|
public
|
getReturnType(): ?TypeInterface
The return type of this function. Null only when the function
is declared without a return type, which the spec permits…
The return type of this function. Null only when the function
is declared without a return type, which the spec permits but
is unusual for well-formed services.
Implemented by
|
#
|
public
|
returnsCollection(): bool
Whether the return type is a collection.
Whether the return type is a collection.
Implemented by
|
#
|
public
|
isReturnTypeNullable(): bool
Whether a null return value is permitted.
Whether a null return value is permitted.
Implemented by
|
#
|
public
|
getParameters(): list<FunctionParameterInterface>
All parameters of this function overload, in declaration order.
All parameters of this function overload, in declaration order.
For bound functions the binding parameter is at index 0.
Implemented by
|
#
|
public
|
getParameter(string $name): ?FunctionParameterInterface
Returns the parameter with the given name, or null if absent.
Returns the parameter with the given name, or null if absent.
Implemented by
|
#
|
public
|
getEntitySetPath(): ?EntitySetPathInterface
For bound functions, the entity set path that identifies which
entity set in the container holds the return values, or…
For bound functions, the entity set path that identifies which
entity set in the container holds the return values, or null
when not applicable or not declared.
Use the returned object's typed accessors to resolve the path
programmatically against the container's navigation property
bindings during query plan generation.
Implemented by
|
#
|