|
8 | 8 | use Illuminate\Contracts\Database\Query\Expression; |
9 | 9 | use Illuminate\Contracts\Pagination\LengthAwarePaginator; |
10 | 10 | use Illuminate\Pagination\Cursor; |
11 | | -use Illuminate\Pagination\CursorPaginator; |
12 | 11 | use PDPhilip\Elasticsearch\Collection\ElasticCollection; |
13 | 12 | use PDPhilip\Elasticsearch\Eloquent\Model; |
| 13 | +use PDPhilip\Elasticsearch\Pagination\SearchAfterPaginator; |
| 14 | +use PDPhilip\Elasticsearch\Query\Builder; |
14 | 15 |
|
15 | 16 | /** |
16 | 17 | * @method static $this term(string $term, $boostFactor = null) |
|
72 | 73 | * @method static array getIndexSettings() |
73 | 74 | * @method static bool indexExists() |
74 | 75 | * @method static LengthAwarePaginator paginate(int $perPage = 15, array $columns = ['*'], string $pageName = 'page', ?int $page = null, ?int $total = null) |
75 | | - * @method static CursorPaginator cursorPaginate(int|null $perPage = null, array $columns = [], string $cursorName = 'cursor', ?Cursor $cursor = null) |
| 76 | + * @method static SearchAfterPaginator cursorPaginate(int|null $perPage = null, array $columns = [], string $cursorName = 'cursor', ?Cursor $cursor = null) |
76 | 77 | * @method static string getQualifiedKeyName() |
77 | 78 | * @method static string getConnection() |
78 | 79 | * @method static void truncate() |
79 | | - * @method static ElasticCollection insert($values, $returnData = null) |
| 80 | + * @method static ElasticCollection insert($values, $returnData = null): |
80 | 81 | * @method static ElasticCollection insertWithoutRefresh($values, $returnData = null) |
81 | 82 | * |
82 | 83 | * @property object $search_highlights |
83 | 84 | * @property object $with_highlights |
84 | 85 | * @property array $search_highlights_as_array |
85 | 86 | * |
86 | | - * @mixin \Illuminate\Database\Query\Builder |
| 87 | + * @mixin Builder |
87 | 88 | */ |
88 | | -trait ModelDocs |
89 | | -{ |
90 | | -} |
| 89 | +trait ModelDocs {} |
0 commit comments