Documentation

Pagination extends ResourceModel
in package

Tags

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

Tags

$current_page

public int $current_page

The page you are currently on within the collection

Tags

$per_page

public int $per_page

The amount of items returned in the collection per page, controlled by the limit parameter

Tags

$total

public int $total

Total number of items in the result set

Tags

$total_pages

public int $total_pages

The total number of pages in the collection

Tags

Methods

__construct()

public __construct([stdClass|null $optionObject = null ]) : mixed
Parameters
$optionObject : stdClass|null = null
Tags
Return values
mixed

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

        

Search results