Skip to content

Commit

Permalink
Addition of option 'premium' to the DNS info request
Browse files Browse the repository at this point in the history
  • Loading branch information
metaregistrar committed May 17, 2023
1 parent ba95123 commit 5012065
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 5012065

Please sign in to comment.