BoothSearchResult
in package
FinalYes
DTO for paginated booth search results.
Table of Contents
Properties
Methods
- __construct() : mixed
- booths() : array<string|int, Booth>
- Booths on the current page.
- page() : int
- Current page number (1-based).
- perPage() : int
- Items per page.
- total() : int
- Total number of booths across all pages.
- totalPages() : int
- Derived total pages.
Properties
$booths
private
array<string|int, Booth>
$booths
$page
private
int
$page
$perPage
private
int
$perPage
$total
private
int
$total
Methods
__construct()
public
__construct(array<string|int, Booth> $booths, int $total, int $page, int $perPage) : mixed
Parameters
- $booths : array<string|int, Booth>
- $total : int
- $page : int
- $perPage : int
booths()
Booths on the current page.
public
booths() : array<string|int, Booth>
Return values
array<string|int, Booth>page()
Current page number (1-based).
public
page() : int
Return values
intperPage()
Items per page.
public
perPage() : int
Return values
inttotal()
Total number of booths across all pages.
public
total() : int
Return values
inttotalPages()
Derived total pages.
public
totalPages() : int