Resolves a single-entity plan into one row, or null when not found.
Intended to be implemented alongside EntitySetResolverInterface by the same driver class (e.g. EloquentEntitySetResolver). EntityHandler retrieves the resolver via RuntimeSchemaInterface::getResolver() and then checks instanceof EntityResolverInterface before calling resolveOne().
The plan parameter is typed as QueryPlanInterface to keep Service\ free of Protocol\ imports; at runtime the value is always Protocol\Planning\EntityQueryPlan.
| Methods | ||
|---|---|---|
public
|
resolveOne(QueryPlanInterface $plan): array<string, mixed>|null
|
# |