public function getMessageId()
    {
        $messageId = $this->getParameter('messageId');

        if (empty($messageId)) {
            $this->setMessageId(substr(md5(microtime()), 0, 30));
        }

        return $this->getParameter('messageId');
    }
public function getMessageId()
    {
        $messageId = $this->getParameter('messageId');

        if (empty($messageId)) {
            $this->setMessageId(substr(md5(microtime()), 0, 30));
        }

        return $this->getParameter('messageId');
    }
public function getMessageId ( ) { $ messageId = $ this -> getParameter ( 'messageId' ) ; if ( empty ( $ messageId ) ) { $ this -> setMessageId ( substr ( md5 ( microtime ( ) ) , 0 , 30 ) ) ; } return $ this -> getParameter ( 'messageId' ) ; }
Get the messageID for the request.

@return string User-supplied messageID or generated one based on
timestamp.
Get the messageID for the request .