diff --git a/src/Symfony/Component/Messenger/Transport/Receiver/ReceiverInterface.php b/src/Symfony/Component/Messenger/Transport/Receiver/ReceiverInterface.php index d974ff00b7..fabb112a98 100644 --- a/src/Symfony/Component/Messenger/Transport/Receiver/ReceiverInterface.php +++ b/src/Symfony/Component/Messenger/Transport/Receiver/ReceiverInterface.php @@ -23,14 +23,14 @@ use Symfony\Component\Messenger\Exception\TransportException; interface ReceiverInterface { /** - * Receive some messages to the given handler. + * Receives some messages to the given handler. * * While this method could return an unlimited number of messages, * the intention is that it returns only one, or a "small number" * of messages each time. This gives the user more flexibility: * they can finish processing the one (or "small number") of messages * from this receiver and move on to check other receivers for messages. - * If a this method returns too many messages, it could cause a + * If this method returns too many messages, it could cause a * blocking effect where handling the messages received from one * call to get() takes a long time, blocking other receivers from * being called. @@ -46,7 +46,7 @@ interface ReceiverInterface public function get(): iterable; /** - * Acknowledge that the passed message was handled. + * Acknowledges that the passed message was handled. * * @throws TransportException If there is an issue communicating with the transport */ diff --git a/src/Symfony/Component/Messenger/WorkerInterface.php b/src/Symfony/Component/Messenger/WorkerInterface.php index a4b3566871..9cde7e57b6 100644 --- a/src/Symfony/Component/Messenger/WorkerInterface.php +++ b/src/Symfony/Component/Messenger/WorkerInterface.php @@ -21,7 +21,7 @@ namespace Symfony\Component\Messenger; interface WorkerInterface { /** - * Receive the messages and dispatch them to the bus. + * Receives the messages and dispatch them to the bus. * * The $onHandledCallback will be passed the Envelope that was just * handled or null if nothing was handled. @@ -31,7 +31,7 @@ interface WorkerInterface public function run(array $options = [], callable $onHandledCallback = null): void; /** - * Stop receiving messages. + * Stops receiving messages. */ public function stop(): void; }