IndexingDataAsString

FinalYes

DTO used for the indexed_search Indexer class

Table of Contents

Properties

$body  : string
$description  : string
$keywords  : string
$title  : string

Methods

__construct()  : mixed
fromArray()  : IndexingDataAsString
toArray()  : array<string|int, mixed>

Properties

$description

public string $description = ''

Methods

__construct()

public __construct([string $title = '' ][, string $body = '' ][, string $keywords = '' ][, string $description = '' ]) : mixed
Parameters
$title : string = ''
$body : string = ''
$keywords : string = ''
$description : string = ''

fromArray()

public static fromArray(array{title?: string|null, body?: string|null, keywords?: string|null, description?: string|null} $input) : IndexingDataAsString
Parameters
$input : array{title?: string|null, body?: string|null, keywords?: string|null, description?: string|null}
Return values
IndexingDataAsString

toArray()

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

        
On this page

Search results