SearchResult
extends Data
Table of Contents
Properties
-
$content
: string
-
$line
: int
-
$matches
: array<string|int, mixed>|null
-
$position
: int
Methods
-
__construct()
: mixed
-
create()
: self
-
getPreview()
: string
$content
read-only
public
string
$content
$line
read-only
public
int
$line
$matches
read-only
public
array<string|int, mixed>|null
$matches
= null
$position
read-only
public
int
$position
__construct()
public
__construct(int $line, string $content, int $position[, array<string|int, mixed>|null $matches = null ]) : mixed
Parameters
-
$line
: int
-
-
$content
: string
-
-
$position
: int
-
-
$matches
: array<string|int, mixed>|null
= null
-
create()
public
static create(int $line, string $content, int $position[, array<string|int, mixed>|null $matches = null ]) : self
Parameters
-
$line
: int
-
-
$content
: string
-
-
$position
: int
-
-
$matches
: array<string|int, mixed>|null
= null
-
getPreview()
public
getPreview([int $maxLength = 100 ]) : string
Parameters
-
$maxLength
: int
= 100
-