WebVIEP Plugin

BoothItemSearchresult
in package

FinalYes

Value object for booth item search results including pagination metadata.

Table of Contents

Properties

$items  : array<string|int, BoothItem>
$page  : int
$perPage  : int
$total  : int

Methods

__construct()  : mixed
items()  : array<string|int, BoothItem>
Items for the current page.
page()  : int
Current page number (1-based).
perPage()  : int
Items per page.
total()  : int
Total items across all pages.
totalPages()  : int
Number of pages, derived from total and perPage.

Properties

Methods

__construct()

public __construct(array<string|int, BoothItem$items[, int|null $total = null ][, int $page = 1 ][, int|null $perPage = null ]) : mixed
Parameters
$items : array<string|int, BoothItem>

Current page of items.

$total : int|null = null

Total items across all pages (fallback: count of $items).

$page : int = 1

Current page number (1-based).

$perPage : int|null = null

Items per page (fallback: $total or count of $items, min 1).

totalPages()

Number of pages, derived from total and perPage.

public totalPages() : int
Return values
int

        
On this page

Search results