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 50
__construct(array $response)

Constructor.

Parameters

array $response Response

at line 60
protected parseResponse(array $response)

Parses the message response.

Parameters

array $response Response

at line 96
string getType()

Returns the message type.

Return Value

string

at line 106
string|null getChannel()

Returns the message channel.

Return Value

string|null

at line 116
string|null getPattern()

Returns the channel pattern.

Return Value

string|null

at line 126
string|null getBody()

Returns the message body.

Return Value

string|null

at line 136
string __toString()

Returns the message body.

Return Value

string