src/Traits/HandlesConversations.php
public function getStoredConversation($message = null)
    {
        if (is_null($message)) {
            $message = $this->getMessage();
        }

        $conversation = $this->cache->get($message->getConversationIdentifier());
        if (is_null($conversation)) {
            $conversation = $this->cache->get($message->getOriginatedConversationIdentifier());
        }

        return $conversation;
    }
public function getStoredConversation($message = null)
    {
        if (is_null($message)) {
            $message = $this->getMessage();
        }

        $conversation = $this->cache->get($message->getConversationIdentifier());
        if (is_null($conversation)) {
            $conversation = $this->cache->get($message->getOriginatedConversationIdentifier());
        }

        return $conversation;
    }
public function getStoredConversation ( $ message = null ) { if ( is_null ( $ message ) ) { $ message = $ this -> getMessage ( ) ; } $ conversation = $ this -> cache -> get ( $ message -> getConversationIdentifier ( ) ) ; if ( is_null ( $ conversation ) ) { $ conversation = $ this -> cache -> get ( $ message -> getOriginatedConversationIdentifier ( ) ) ; } return $ conversation ; }
Get a stored conversation array from the cache for a given message.

@param null|IncomingMessage $message
@return array
Get a stored conversation array from the cache for a given message .