final | |
|---|---|
implements |
EntitySetResolverInterface, EntityResolverInterface |
Resolves entity-set and single-entity plans against an Eloquent model class.
Implements EntitySetResolverInterface for collection queries and EntityResolverInterface for single-entity key lookups. Both are bound from the same model class, so registering one resolver per entity set covers both access patterns without additional wiring.
| Methods | ||
|---|---|---|
public
|
__construct(class-string<Model> $modelClass)
|
# |
public
|
getModelClass(): class-string<Model>
|
# |
public
|
setSchema(RuntimeSchemaInterface $schema): void
|
# |
public
|
resolve(QueryPlanInterface $plan): Generator<array<string, mixed>>
|
# |
public
|
resolveOne(QueryPlanInterface $plan): array<string, mixed>|null
|
# |
public
|
count(QueryPlanInterface $plan): int
|
# |