Pagination extends ResourceModel
Table of Contents
- $count : int
- $current_page : int
- $per_page : int
- $total : int
- $total_pages : int
- __construct() : mixed
- jsonSerialize() : array<string|int, mixed>
Properties
$count
public
int
$count
Total number of items in the collection response
$current_page
public
int
$current_page
The page you are currently on within the collection
$per_page
public
int
$per_page
The amount of items returned in the collection per page, controlled by the limit parameter
$total
public
int
$total
Total number of items in the result set
$total_pages
public
int
$total_pages
The total number of pages in the collection
Methods
__construct()
public
__construct([stdClass|null $optionObject = null ]) : mixed
Parameters
- $optionObject : stdClass|null = null
Return values
mixed —jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>