ResultItemAction implements JsonSerializable
FinalYes
Class that represents a search result item action
Class may change in further iterations, do not rely on it
Table of Contents
Interfaces
- JsonSerializable
Methods
- __construct() : mixed
- jsonSerialize() : array<string|int, mixed>
- setIcon() : self
- setLabel() : self
- setUrl() : self
Methods
__construct()
public
__construct(non-empty-string $identifier) : mixed
Parameters
- $identifier : non-empty-string
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>setIcon()
public
setIcon(Icon|null $icon) : self
Parameters
- $icon : Icon|null
Return values
selfsetLabel()
public
setLabel(string $label) : self
Parameters
- $label : string
Return values
selfsetUrl()
public
setUrl(string $url) : self
Parameters
- $url : string