public function get($messageId)
    {
        if (!isset($this->messages[$messageId])) {
            return null;
        }

        return new OutboxMessage($messageId, $this->messages[$messageId]->getTransportOperations());
    }
public function get($messageId)
    {
        if (!isset($this->messages[$messageId])) {
            return null;
        }

        return new OutboxMessage($messageId, $this->messages[$messageId]->getTransportOperations());
    }
public function get ( $ messageId ) { if ( ! isset ( $ this -> messages [ $ messageId ] ) ) { return null ; } return new OutboxMessage ( $ messageId , $ this -> messages [ $ messageId ] -> getTransportOperations ( ) ) ; }
Fetches the given message from the storage. It returns null if no message is found.

@param string $messageId

@return OutboxMessage|null
Fetches the given message from the storage . It returns null if no message is found .