src/ResponseParser.php
public function getResponseCode()
    {
        $code = 0;

        $dom = $this->getDOMDocument();
        $xpath = new DOMXPath($dom);
        if (($codeAttribute = $xpath->query('/response/@code')->item(0)) instanceof DOMAttr) {
            $code = intval($codeAttribute->nodeValue);
        }

        return $code;
    }
public function getResponseCode()
    {
        $code = 0;

        $dom = $this->getDOMDocument();
        $xpath = new DOMXPath($dom);
        if (($codeAttribute = $xpath->query('/response/@code')->item(0)) instanceof DOMAttr) {
            $code = intval($codeAttribute->nodeValue);
        }

        return $code;
    }
public function getResponseCode ( ) { $ code = 0 ; $ dom = $ this -> getDOMDocument ( ) ; $ xpath = new DOMXPath ( $ dom ) ; if ( ( $ codeAttribute = $ xpath -> query ( '/response/@code' ) -> item ( 0 ) ) instanceof DOMAttr ) { $ code = intval ( $ codeAttribute -> nodeValue ) ; } return $ code ; }
Returns the response code from the API.

@param ResponseInterface $response

@return int
Returns the response code from the API .