class Message

Redis pub/sub message.

Properties

protected string $type Message type.
protected string|null $channel Message channel.
protected string|null $pattern Channel pattern.
protected string|null $body Message body.

Methods

__construct(array $response)

Constructor.

parseResponse(array $response)

Parses the message response.

string
getType()

Returns the message type.

string|null
getChannel()

Returns the message channel.

string|null
getPattern()

Returns the channel pattern.

string|null
getBody()

Returns the message body.

string
__toString()

Returns the message body.

Details

at line 52
__construct(array $response)

Constructor.

Parameters

array $response Response

at line 62
protected parseResponse(array $response)

Parses the message response.

Parameters

array $response Response

at line 98
string getType()

Returns the message type.

Return Value

string

at line 108
string|null getChannel()

Returns the message channel.

Return Value

string|null

at line 118
string|null getPattern()

Returns the channel pattern.

Return Value

string|null

at line 128
string|null getBody()

Returns the message body.

Return Value

string|null

at line 138
string __toString()

Returns the message body.

Return Value

string