Metaregistrar\EPP\eppResponse::getServerTransactionId PHP Method

getServerTransactionId() public method

public getServerTransactionId ( ) : string
return string
    public function getServerTransactionId()
    {
        $xpath = $this->xPath();
        $result = $xpath->query('/epp:epp/epp:response/epp:trID/epp:svTRID');
        if (is_object($result) && $result->length > 0) {
            return $result->item(0)->nodeValue;
        } else {
            $result = $xpath->query('/epp:epp/epp:response/epp:trID/epp:svTRID');
            if (is_object($result) && $result->length > 0) {
                return $result->item(0)->nodeValue;
            } else {
                return null;
            }
        }
    }