ModelSearchResponse
extends BaseSearchResponse
in package
Models search response.
Table of Contents
Properties
Methods
- __construct() : mixed
- __toString() : string
- getRawHttp() : string
- bodyLines() : array<int, string>
- Lines composing the response-specific body (header + items).
Properties
$models
public
SearchModels
$models
List of all models matching the search query.
$pagination
public
PaginationMetadata
$pagination
Pagination metadata for the search results.
Methods
__construct()
public
__construct(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawResponse) : mixed
Parameters
- $rawResponse : array<string, int|float|string|bool|null|array<string|int, mixed>>
-
Raw server response array.
__toString()
public
__toString() : string
Return values
string —String representation.
getRawHttp()
public
getRawHttp() : string
Return values
string —Raw dump of the JSON response.
bodyLines()
Lines composing the response-specific body (header + items).
protected
bodyLines() : array<int, string>
Return values
array<int, string> —Body lines.