DefinitionResolver
in
Resolves a definition to a value.
Tags
Table of Contents
Methods
- isResolvable() : bool
- Check if a definition can be resolved.
- resolve() : mixed
- Resolve a definition to a value.
Methods
isResolvable()
Check if a definition can be resolved.
public
isResolvable(Definition $definition[, array<string|int, mixed> $parameters = [] ]) : bool
Parameters
- $definition : Definition
-
Object that defines how the value should be obtained.
- $parameters : array<string|int, mixed> = []
-
Optional parameters to use to build the entry.
Tags
Return values
boolresolve()
Resolve a definition to a value.
public
resolve(Definition $definition[, array<string|int, mixed> $parameters = [] ]) : mixed
Parameters
- $definition : Definition
-
Object that defines how the value should be obtained.
- $parameters : array<string|int, mixed> = []
-
Optional parameters to use to build the entry.
Tags
Return values
mixed —Value obtained from the definition.