Abstract Class Yiisoft\Queue\Message\Message
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
| Subclasses | Yiisoft\ |
Base implementation of {@see MessageInterface} providing metadata storage.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| fromPayload() | Creates a new message instance from the given type and payload data. | Yiisoft\ |
| getMeta() | Yiisoft\ |
|
| getPayload() | Returns payload data. | Yiisoft\ |
| getType() | Returns message type. | Yiisoft\ |
| withMeta() | Yiisoft\ |
Method Details
Defined in:
Yiisoft\
Creates a new message instance from the given type and payload data.
| public abstract static static fromPayload ( string $type, boolean|integer|float|string|array|null $payload ) | ||
| $type | string |
Message type. |
| $payload | boolean|integer|float|string|array|null |
Message payload data. Must contain only |
| return | static |
Instance of the called class with the given type and payload. |
|---|---|---|
public static function fromPayload(string $type, bool|int|float|string|array|null $payload): static;
Defined in:
Yiisoft\
Returns payload data.
| public abstract boolean|integer|float|string|array|null getPayload ( ) | ||
| return | boolean|integer|float|string|array|null |
Payload data containing only |
|---|---|---|
public function getPayload(): bool|int|float|string|array|null;
Defined in:
Yiisoft\
Returns message type.
| public abstract string getType ( ) | ||
| return | string |
Message type. |
|---|---|---|
public function getType(): string;
User Contributed Notes
Leave a comment
Join the conversation to share a note.