Esempio n. 1
0
 /**
  * @param Domain $domain
  * @return Operation
  * @throws APIException
  */
 public function setNameservers(Domain $domain)
 {
     $gandi = $this->gandi->getProxy('domain.nameservers');
     $result = $gandi->set($this->api_key, $domain->getFqdn(), $domain->getNameservers());
     if ($result['last_error']) {
         throw new APIException($result['last_error']);
     }
     return new Operation($result);
 }