IndexingDataAsArray
FinalYes
DTO used for the indexed_search Indexer class
Table of Contents
Properties
- $body : array<string|int, mixed>
- $description : array<string|int, mixed>
- $keywords : array<string|int, mixed>
- $title : array<string|int, mixed>
Methods
- __construct() : mixed
- fromArray() : IndexingDataAsArray
- toArray() : array<string|int, mixed>
Properties
$body
public
array<string|int, mixed>
$body
= []
$description
public
array<string|int, mixed>
$description
= []
$keywords
public
array<string|int, mixed>
$keywords
= []
$title
public
array<string|int, mixed>
$title
= []
Methods
__construct()
public
__construct([array<string|int, mixed> $title = [] ][, array<string|int, mixed> $body = [] ][, array<string|int, mixed> $keywords = [] ][, array<string|int, mixed> $description = [] ]) : mixed
Parameters
- $title : array<string|int, mixed> = []
- $body : array<string|int, mixed> = []
- $keywords : array<string|int, mixed> = []
- $description : array<string|int, mixed> = []
fromArray()
public
static fromArray(array{title?: array|null, body?: array|null, keywords?: array|null, description?: array|null} $input) : IndexingDataAsArray
Parameters
- $input : array{title?: array|null, body?: array|null, keywords?: array|null, description?: array|null}
Return values
IndexingDataAsArraytoArray()
public
toArray() : array<string|int, mixed>