CommandResult
in package
implements
CommandResultInterface
Table of Contents
Interfaces
Properties
- $eventId : mixed|string
- The event ID.
- $message : string
- The message.
- $success : bool
- Whether the request was successful or not.
Methods
- __construct() : mixed
- Constructs the Relay Response.
- getEventId() : string
- Returns the event id.
- isSuccess() : bool
- Returns whether the request was successful.
- message() : string
- Returns the message, if any.
Properties
$eventId
The event ID.
protected
mixed|string
$eventId
= ''
$message
The message.
protected
string
$message
= ''
$success
Whether the request was successful or not.
protected
bool
$success
= false
Methods
__construct()
Constructs the Relay Response.
public
__construct(array<string|int, mixed> $response) : mixed
Parameters
- $response : array<string|int, mixed>
getEventId()
Returns the event id.
public
getEventId() : string
Return values
stringisSuccess()
Returns whether the request was successful.
public
isSuccess() : bool
Return values
boolmessage()
Returns the message, if any.
public
message() : string