Meilisearch PHP | Documentation

FacetSearchResult
in package
implements Countable, IteratorAggregate

Tags
implements

\IteratorAggregate<array<int, array<string, mixed>>>

Table of Contents

Interfaces

Countable
IteratorAggregate

Properties

$facetHits  : array<int, array<string, mixed>>
$facetQuery  : string|null
$processingTimeMs  : int

Methods

__construct()  : mixed
count()  : int
getFacetHits()  : array<int, array<string|int, mixed>>
getIterator()  : ArrayIterator
getProcessingTimeMs()  : int
toArray()  : array<string|int, mixed>
toJSON()  : string

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $body) : mixed
Parameters
$body : array<string|int, mixed>

getFacetHits()

public getFacetHits() : array<int, array<string|int, mixed>>
Return values
array<int, array<string|int, mixed>>

getIterator()

public getIterator() : ArrayIterator
Return values
ArrayIterator

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results