public function setNameservers($domainName, $nameservers)
    {
        foreach ($nameservers as $nameserver) {
            if (!$nameserver instanceof \Transip\Model\Nameserver) {
                throw new \RuntimeException(sprintf('nameserver is not an instance of %s', '\\Transip\\Model\\Nameserver'));
            }
        }

        return $this->getSoapClient(array_merge(array($domainName, $nameservers), array('__method' => 'setNameservers')))->setNameservers($domainName, $nameservers);
    }
public function setNameservers($domainName, $nameservers)
    {
        foreach ($nameservers as $nameserver) {
            if (!$nameserver instanceof \Transip\Model\Nameserver) {
                throw new \RuntimeException(sprintf('nameserver is not an instance of %s', '\\Transip\\Model\\Nameserver'));
            }
        }

        return $this->getSoapClient(array_merge(array($domainName, $nameservers), array('__method' => 'setNameservers')))->setNameservers($domainName, $nameservers);
    }
public function setNameservers ( $ domainName , $ nameservers ) { foreach ( $ nameservers as $ nameserver ) { if ( ! $ nameserver instanceof \ Transip \ Model \ Nameserver ) { throw new \ RuntimeException ( sprintf ( 'nameserver is not an instance of %s' , '\\Transip\\Model\\Nameserver' ) ) ; } } return $ this -> getSoapClient ( array_merge ( array ( $ domainName , $ nameservers ) , array ( '__method' => 'setNameservers' ) ) ) -> setNameservers ( $ domainName , $ nameservers ) ; }
Starts a nameserver change for this domain, will replace all existing nameservers with the new nameservers

@param string                      $domainName  the domainName to change the nameservers for
@param \Transip\Model\Nameserver[] $nameservers the list of new nameservers for this domain
@throws \RuntimeException
Starts a nameserver change for this domain will replace all existing nameservers with the new nameservers