Bånder

SearchResult extends Data
in package

Table of Contents

Properties

$content  : string
$line  : int
$matches  : array<string|int, mixed>|null
$position  : int

Methods

__construct()  : mixed
create()  : self
getPreview()  : string

Properties

$matches read-only

public array<string|int, mixed>|null $matches = null

Methods

__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
Return values
self

getPreview()

public getPreview([int $maxLength = 100 ]) : string
Parameters
$maxLength : int = 100
Return values
string

        
On this page

Search results