Skip to content

Commit

Permalink
Add return annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag authored Oct 23, 2018
1 parent f7f5568 commit 72f875b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Messaging/DomainMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ public function messageName(): string
return $this->messageName;
}

/**
* @return static
*/
public function withMetadata(array $metadata): Message
{
$message = clone $this;
Expand All @@ -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
{
Expand Down

0 comments on commit 72f875b

Please sign in to comment.