public function getContact($type) { if (is_array($this->contacts)) { foreach ($this->contacts as $contact) { /* @var $contact eppContactHandle */ if ($contact->getContactType() == $type) { return $contact; } } } return null; }