Message
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.
at line 62
protected
parseResponse(array $response)
Parses the message response.
at line 98
string
getType()
Returns the message type.
at line 108
string|null
getChannel()
Returns the message channel.
at line 118
string|null
getPattern()
Returns the channel pattern.
at line 128
string|null
getBody()
Returns the message body.
at line 138
string
__toString()
Returns the message body.