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 50
__construct(array $response)
Constructor.
at line 60
protected
parseResponse(array $response)
Parses the message response.
at line 96
string
getType()
Returns the message type.
at line 106
string|null
getChannel()
Returns the message channel.
at line 116
string|null
getPattern()
Returns the channel pattern.
at line 126
string|null
getBody()
Returns the message body.
at line 136
string
__toString()
Returns the message body.