public function setContactHandles($contacthandles)
{
#
# Domain check structure
#
$check = $this->createElement('check');
$this->contactobject = $this->createElement('contact:check');
foreach ($contacthandles as $contacthandle) {
if ($contacthandle instanceof eppContactHandle) {
$this->contactobject->appendChild($this->createElement('contact:id', $contacthandle->getContactHandle()));
} else {
$this->contactobject->appendChild($this->createElement('contact:id', $contacthandle));
}
}
$check->appendChild($this->contactobject);
$this->getCommand()->appendChild($check);
}