src/PAMI/Client/Impl/ClientImpl.php
private function messageToResponse($msg)
    {
        $response = new ResponseMessage($msg);
        $actionId = $response->getActionId();
        if (is_null($actionId)) {
            $actionId = $this->lastActionId;
            $response->setActionId($this->lastActionId);
        }
        return $response;
    }
private function messageToResponse($msg)
    {
        $response = new ResponseMessage($msg);
        $actionId = $response->getActionId();
        if (is_null($actionId)) {
            $actionId = $this->lastActionId;
            $response->setActionId($this->lastActionId);
        }
        return $response;
    }
private function messageToResponse ( $ msg ) { $ response = new ResponseMessage ( $ msg ) ; $ actionId = $ response -> getActionId ( ) ; if ( is_null ( $ actionId ) ) { $ actionId = $ this -> lastActionId ; $ response -> setActionId ( $ this -> lastActionId ) ; } return $ response ; }
Returns a ResponseMessage from a raw string that came from asterisk.

@param string $msg Raw string.

@return \PAMI\Message\Response\ResponseMessage
Returns a ResponseMessage from a raw string that came from asterisk .