Skip to content

Commit

Permalink
improve @throws docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikbosch committed Mar 11, 2022
1 parent b8205cb commit de67774
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public function __construct(array $senders)
/**
* @param Message $message
* @param RecipientInterface $recipient
* @throws Exception\ForbiddenToSendMessageException
* @throws Exception\InvalidMessageException
* @throws Exception\InvalidRecipientException
* @throws Exception\UnknownRecipientException
* @throws UnsupportedMessageRecipient
*/
public function send(Message $message, RecipientInterface $recipient): void
Expand Down
9 changes: 9 additions & 0 deletions src/SenderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

namespace Genkgo\Push;

use Genkgo\Push\Exception\ForbiddenToSendMessageException;
use Genkgo\Push\Exception\InvalidMessageException;
use Genkgo\Push\Exception\InvalidRecipientException;
use Genkgo\Push\Exception\UnknownRecipientException;

interface SenderInterface
{
/**
Expand All @@ -16,6 +21,10 @@ public function supports(Message $message, RecipientInterface $recipient): bool;
* @param Message $message
* @param RecipientInterface $recipient
* @return void
* @throws ForbiddenToSendMessageException
* @throws InvalidMessageException
* @throws InvalidRecipientException
* @throws UnknownRecipientException
*/
public function send(Message $message, RecipientInterface $recipient): void;
}

0 comments on commit de67774

Please sign in to comment.