ResultItem implements JsonSerializable
FinalYes
Class that represents a search result item
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
addAction()
public
addAction(ResultItemAction $action) : self
Parameters
- $action : ResultItemAction
Return values
selfgetExtraData()
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
stringjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>setActions()
public
setActions(ResultItemAction ...$action) : self
Parameters
- $action : ResultItemAction
Return values
selfsetExtraData()
public
setExtraData(array<string|int, mixed> $extraData) : ResultItem
Parameters
- $extraData : array<string|int, mixed>
Return values
ResultItemsetIcon()
public
setIcon(Icon $icon) : self
Parameters
- $icon : Icon
Return values
selfsetInternalData()
public
setInternalData(array<string|int, mixed> $internalData) : ResultItem
Parameters
- $internalData : array<string|int, mixed>
Return values
ResultItemsetItemTitle()
public
setItemTitle(string $itemTitle) : self
Parameters
- $itemTitle : string
Return values
selfsetTypeLabel()
public
setTypeLabel(string $typeLabel) : self
Parameters
- $typeLabel : string