PaginationMetadata
in package
implements
Stringable
Pagination metadata.
Table of Contents
Interfaces
- Stringable
Properties
- $page : int
- $perPage : int
- $totalItems : int
- $totalPages : int
Methods
- __construct() : mixed
- __toString() : string
Properties
$page
public
int
$page
1-indexed page number.
$perPage
public
int
$perPage
Number of items per page.
$totalItems
public
int
$totalItems
Total number of items.
$totalPages
public
int
$totalPages
Total number of pages.
Methods
__construct()
public
__construct(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawResponse) : mixed
Parameters
- $rawResponse : array<string, int|float|string|bool|null|array<string|int, mixed>>
-
Raw server response array.
__toString()
public
__toString() : string
Return values
string —String representation.