| 1 |
<?php |
| 2 |
namespace Photonic_Plugin\Components; |
| 3 |
|
| 4 |
class Pagination { |
| 5 |
/** |
| 6 |
* @var int $start Index of the first element of the current dataset, relative to the total dataset; >= 1 |
| 7 |
*/ |
| 8 |
public $start; |
| 9 |
|
| 10 |
/** |
| 11 |
* @var int $end Index of the last element of the current dataset, relative to the total dataset; <= $total |
| 12 |
*/ |
| 13 |
public $end; |
| 14 |
|
| 15 |
/** |
| 16 |
* @var int $total Total number of elements in the current dataset |
| 17 |
*/ |
| 18 |
public $total; |
| 19 |
|
| 20 |
/** |
| 21 |
* @var int $per_page Items attempted to fetch for the current dataset; $per_page >= $end - $start + 1 |
| 22 |
*/ |
| 23 |
public $per_page; |
| 24 |
|
| 25 |
/** |
| 26 |
* @var string $next_token Token to fetch next data set; some platforms use this instead of defining hard counts |
| 27 |
*/ |
| 28 |
public $next_token; |
| 29 |
} |
| 30 |
|