Skip to content

Commit 5012065

Browse files
committed
Addition of option 'premium' to the DNS info request
1 parent ba95123 commit 5012065

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Protocols/EPP/eppExtensions/dns-ext-1.0/eppResponses/metaregInfoDnsResponse.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,21 @@ class metaregInfoDnsResponse extends eppResponse {
1010
*/
1111
public function getName() {
1212
$xpath = $this->xPath();
13-
$test= $xpath->query(self::RESPONSE_BASEXPATH . '/dns-ext:name');
13+
$test = $xpath->query(self::RESPONSE_BASEXPATH . '/dns-ext:name');
1414
if ($test->length>0) {
1515
return $test->item(0)->textContent;
1616
}
1717
return null;
1818
}
1919

20+
public function getPremium() {
21+
$xpath = $this->xPath();
22+
$test = $xpath->query(self::RESPONSE_BASEXPATH . '/dns-ext:premium');
23+
if ($test->length>0) {
24+
return $test->item(0)->textContent;
25+
}
26+
return null;
27+
}
2028
/**
2129
* @return array
2230
*/

0 commit comments

Comments
 (0)