From 50120650b8688083348c5c8c73b6a0e2ba5b7d4c Mon Sep 17 00:00:00 2001 From: Ewout de Graaf Date: Wed, 17 May 2023 10:44:33 +0200 Subject: [PATCH] Addition of option 'premium' to the DNS info request --- .../eppResponses/metaregInfoDnsResponse.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Protocols/EPP/eppExtensions/dns-ext-1.0/eppResponses/metaregInfoDnsResponse.php b/Protocols/EPP/eppExtensions/dns-ext-1.0/eppResponses/metaregInfoDnsResponse.php index dbbe1a7e..37f5e105 100644 --- a/Protocols/EPP/eppExtensions/dns-ext-1.0/eppResponses/metaregInfoDnsResponse.php +++ b/Protocols/EPP/eppExtensions/dns-ext-1.0/eppResponses/metaregInfoDnsResponse.php @@ -10,13 +10,21 @@ class metaregInfoDnsResponse extends eppResponse { */ public function getName() { $xpath = $this->xPath(); - $test= $xpath->query(self::RESPONSE_BASEXPATH . '/dns-ext:name'); + $test = $xpath->query(self::RESPONSE_BASEXPATH . '/dns-ext:name'); if ($test->length>0) { return $test->item(0)->textContent; } return null; } + public function getPremium() { + $xpath = $this->xPath(); + $test = $xpath->query(self::RESPONSE_BASEXPATH . '/dns-ext:premium'); + if ($test->length>0) { + return $test->item(0)->textContent; + } + return null; + } /** * @return array */