Documentation

BaseSearchParameters
in package

AbstractYes

Base parameters for searches.

Tags
template

Table of Contents

Properties

$page  : int|null
$perPage  : int|null
$slug  : string
$responseClass  : TSearchResponse>

Methods

__construct()  : mixed
getRequestParameters()  : array<string, string>
Gets the request parameters for the search request.
getResponseClass()  : TSearchResponse>
Gets the response class associated with the parameters.

Properties

Methods

__construct()

public __construct([int|null $page = null ][, int|null $perPage = null ]) : mixed
Parameters
$page : int|null = null

1-based page index.

$perPage : int|null = null

Number of items per page.

getRequestParameters()

Gets the request parameters for the search request.

public getRequestParameters() : array<string, string>
Return values
array<string, string>

Query parameters.

getResponseClass()

Gets the response class associated with the parameters.

public getResponseClass() : TSearchResponse>
Return values
TSearchResponse>

Response class.

On this page

Search results