File tree Expand file tree Collapse file tree 1 file changed +19
-6
lines changed
Protocols/EPP/eppExtensions/dnsbe-1.0/eppResponses Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ function __construct() {
77
88
99 /**
10- *
11- * @return boolean
10+ * Retrieve a boolean flag if this domain name is in quarantine or not
11+ * @return bool|null
1212 */
1313 public function getQuarantined () {
1414 $ xpath = $ this ->xPath ();
@@ -26,8 +26,8 @@ public function getQuarantined() {
2626
2727
2828 /**
29- *
30- * @return boolean
29+ * Retrieve a boolean flag if this domain name is on hold or not
30+ * @return bool|null
3131 */
3232 public function getOnHold () {
3333 $ xpath = $ this ->xPath ();
@@ -44,8 +44,7 @@ public function getOnHold() {
4444 }
4545
4646 /**
47- *
48- * @return string
47+ * @return null|string
4948 */
5049 public function getDomainDeletionDate () {
5150 $ xpath = $ this ->xPath ();
@@ -56,5 +55,19 @@ public function getDomainDeletionDate() {
5655 return null ;
5756 }
5857 }
58+
59+ /**
60+ * Retrieve a string with the nameserver group
61+ * @return null|string
62+ */
63+ public function getNameserverGroup () {
64+ $ xpath = $ this ->xPath ();
65+ $ result = $ xpath ->query ('/epp:epp/epp:response/epp:extension/dnsbe:ext/dnsbe:infData/dnsbe:domain/dnsbe:nsgroup ' );
66+ if ($ result ->length > 0 ) {
67+ return $ result ->item (0 )->nodeValue ;
68+ } else {
69+ return null ;
70+ }
71+ }
5972}
6073
You can’t perform that action at this time.
0 commit comments