SearchResults
extends Data
Table of Contents
Properties
-
$caseSensitive
: bool
-
$hasMoreResults
: bool
-
$pattern
: string
-
$results
: array<string|int, SearchResult>
-
$searchTimeMs
: float
-
$totalMatches
: int
Methods
-
__construct()
: mixed
-
create()
: self
-
getFirstResult()
: SearchResult|null
-
getLastResult()
: SearchResult|null
-
isEmpty()
: bool
$caseSensitive
read-only
public
bool
$caseSensitive
$hasMoreResults
read-only
public
bool
$hasMoreResults
$pattern
read-only
public
string
$pattern
$results
read-only
public
array<string|int, SearchResult>
$results
$searchTimeMs
read-only
public
float
$searchTimeMs
$totalMatches
read-only
public
int
$totalMatches
__construct()
public
__construct(array<string|int, mixed> $results, string $pattern, bool $caseSensitive, int $totalMatches, float $searchTimeMs, bool $hasMoreResults) : mixed
Parameters
-
$results
: array<string|int, mixed>
-
-
$pattern
: string
-
-
$caseSensitive
: bool
-
-
$totalMatches
: int
-
-
$searchTimeMs
: float
-
-
$hasMoreResults
: bool
-
create()
public
static create(array<string|int, mixed> $results, string $pattern, bool $caseSensitive, float $searchTimeMs[, bool $hasMoreResults = false ]) : self
Parameters
-
$results
: array<string|int, mixed>
-
-
$pattern
: string
-
-
$caseSensitive
: bool
-
-
$searchTimeMs
: float
-
-
$hasMoreResults
: bool
= false
-
getFirstResult()
public
getFirstResult() : SearchResult|null
getLastResult()
public
getLastResult() : SearchResult|null
isEmpty()
public
isEmpty() : bool