ResultItemAction
final class \
- Implements
- JsonSerializable
Class that represents a search result item action
Internal
Class may change in further iterations, do not rely on it
Table of Contents
Interfaces
- JsonSerializable
Methods
- __construct() : mixed
- jsonSerialize() : array
- setIcon() : self
- setLabel() : self
- setUrl() : self
Methods
__construct()
public
__construct(non-empty-string $identifier) : mixed
Parameters
- $identifier : non-empty-string
jsonSerialize()
public
jsonSerialize() : array
Return values
arraysetIcon()
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