Skip to content

Commit f1f0130

Browse files
♻️ change Pagination class to PaginationMetadata
1 parent 2a332f0 commit f1f0130

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/V2/Parsing/Search/Pagination.php renamed to src/V2/Parsing/Search/PaginationMetadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Pagination metadata.
1111
*/
12-
class Pagination implements Stringable
12+
class PaginationMetadata implements Stringable
1313
{
1414
/**
1515
* @var integer Number of items per page.

src/V2/Parsing/Search/SearchResponse.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ class SearchResponse extends BaseResponse implements Stringable
1818
public SearchModels $models;
1919

2020
/**
21-
* @var Pagination Pagination metadata for the search results.
21+
* @var PaginationMetadata Pagination metadata for the search results.
2222
*/
23-
public Pagination $pagination;
23+
public PaginationMetadata $pagination;
2424

2525
/**
2626
* @param array<string, int|float|string|bool|null|array<array-key, mixed>> $rawResponse Raw server response array.
@@ -29,7 +29,7 @@ public function __construct(array $rawResponse)
2929
{
3030
parent::__construct($rawResponse);
3131
$this->models = new SearchModels($rawResponse['models']);
32-
$this->pagination = new Pagination($rawResponse['pagination']);
32+
$this->pagination = new PaginationMetadata($rawResponse['pagination']);
3333
}
3434

3535
/**

0 commit comments

Comments
 (0)