Documentation

CommandResult
in package
implements CommandResultInterface

Table of Contents

Interfaces

CommandResultInterface

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

$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
string

isSuccess()

Returns whether the request was successful.

public isSuccess() : bool
Return values
bool

message()

Returns the message, if any.

public message() : string
Return values
string

        
On this page

Search results