public function getPayload()
    {
        if (!$this->token) {
            throw new \RuntimeException('Token is mandatory.');
        }

        $descriptionNode = $this->appendDescriptionNode();
        $this->appendTagNode($descriptionNode);
        $this->appendTokenNode($descriptionNode);
        $this->appendTemplateNode($descriptionNode);
        $this->appendAdditionalNode($descriptionNode);

        $this->dom->formatOutput = true;

        return $this->dom->saveXML();
    }
public function getPayload()
    {
        if (!$this->token) {
            throw new \RuntimeException('Token is mandatory.');
        }

        $descriptionNode = $this->appendDescriptionNode();
        $this->appendTagNode($descriptionNode);
        $this->appendTokenNode($descriptionNode);
        $this->appendTemplateNode($descriptionNode);
        $this->appendAdditionalNode($descriptionNode);

        $this->dom->formatOutput = true;

        return $this->dom->saveXML();
    }
public function getPayload ( ) { if ( ! $ this -> token ) { throw new \ RuntimeException ( 'Token is mandatory.' ) ; } $ descriptionNode = $ this -> appendDescriptionNode ( ) ; $ this -> appendTagNode ( $ descriptionNode ) ; $ this -> appendTokenNode ( $ descriptionNode ) ; $ this -> appendTemplateNode ( $ descriptionNode ) ; $ this -> appendAdditionalNode ( $ descriptionNode ) ; $ this -> dom -> formatOutput = true ; return $ this -> dom -> saveXML ( ) ; }
Returns the atom payload for the registration request.

@throws \RuntimeException

@return string
Returns the atom payload for the registration request .