ResultItem implements JsonSerializable

FinalYes

Class that represents a search result item

Internal

Class may change in further iterations, do not rely on it

Table of Contents

Interfaces

JsonSerializable

Methods

__construct()  : mixed
addAction()  : self
getExtraData()  : array<string|int, mixed>
getInternalData()  : array<string|int, mixed>
getProviderClassName()  : string
jsonSerialize()  : array<string|int, mixed>
setActions()  : self
setExtraData()  : ResultItem
setIcon()  : self
setInternalData()  : ResultItem
setItemTitle()  : self
setTypeLabel()  : self

Methods

__construct()

public __construct(class-string $providerClassName) : mixed
Parameters
$providerClassName : class-string

getExtraData()

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

getInternalData()

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

getProviderClassName()

public getProviderClassName() : string
Return values
string

jsonSerialize()

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

setExtraData()

public setExtraData(array<string|int, mixed> $extraData) : ResultItem
Parameters
$extraData : array<string|int, mixed>
Return values
ResultItem

setIcon()

public setIcon(Icon $icon) : self
Parameters
$icon : Icon
Return values
self

setInternalData()

public setInternalData(array<string|int, mixed> $internalData) : ResultItem
Parameters
$internalData : array<string|int, mixed>
Return values
ResultItem

setItemTitle()

public setItemTitle(string $itemTitle) : self
Parameters
$itemTitle : string
Return values
self

setTypeLabel()

public setTypeLabel(string $typeLabel) : self
Parameters
$typeLabel : string
Return values
self

        
On this page

Search results