diff --git a/src/Messaging/DomainMessage.php b/src/Messaging/DomainMessage.php index 57921a8..0e1d62a 100644 --- a/src/Messaging/DomainMessage.php +++ b/src/Messaging/DomainMessage.php @@ -109,6 +109,9 @@ public function messageName(): string return $this->messageName; } + /** + * @return static + */ public function withMetadata(array $metadata): Message { $message = clone $this; @@ -122,6 +125,8 @@ public function withMetadata(array $metadata): Message * Returns new instance of message with $key => $value added to metadata * * Given value must have a scalar type. + * + * @return static */ public function withAddedMetadata(string $key, $value): Message {