public function dispatchAll(MessageCollection $messages)
    {
        $collection = $messages->getMessageCollection();

        while ($collection->valid()) {
            $message = $collection->current();
            $this->dispatch($message);
            $collection->next();
        }

        return $this;
    }
public function dispatchAll(MessageCollection $messages)
    {
        $collection = $messages->getMessageCollection();

        while ($collection->valid()) {
            $message = $collection->current();
            $this->dispatch($message);
            $collection->next();
        }

        return $this;
    }
public function dispatchAll ( MessageCollection $ messages ) { $ collection = $ messages -> getMessageCollection ( ) ; while ( $ collection -> valid ( ) ) { $ message = $ collection -> current ( ) ; $ this -> dispatch ( $ message ) ; $ collection -> next ( ) ; } return $ this ; }
Tries to dispatch all messages to notification service

@param MessageCollection $messages
@return $this
Tries to dispatch all messages to notification service