public function setHost(eppHost $host)
{
if (!strlen($host->getHostname())) {
throw new eppException('No valid hostname in create host request');
}
#
# Object create structure
#
$this->hostobject->appendChild($this->createElement('host:name', $host->getHostname()));
$addresses = $host->getIpAddresses();
if (is_array($addresses)) {
foreach ($addresses as $address => $type) {
$ipaddress = $this->createElement('host:addr', $address);
$ipaddress->setAttribute('ip', $type);
$this->hostobject->appendChild($ipaddress);
}
}
return;
}