mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
- AppServiceProvider is needs more work to wire in new services - todo: more dtos - todo: add unit tests - todo: add more integration tests
14 lines
393 B
PHP
14 lines
393 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
|
|
|
|
/**
|
|
* Represents a service which knows how to paginate the Scout/Eloquent database query builders.
|
|
*/
|
|
interface QueryBuilderPaginatorService
|
|
{
|
|
function paginate(\Laravel\Scout\Builder|\Illuminate\Database\Eloquent\Builder $builder, ?int $limit = null, ?int $page = null): LengthAwarePaginator;
|
|
}
|