/**
  * @test
  * @group        metadata
  * @group        contactperson
  *
  * @dataProvider \OpenConext\Value\TestDataProvider::notStringOrEmptyString
  * @expectedException InvalidArgumentException
  *
  * @param mixed $invalidData
  */
 public function deserialization_requires_the_presence_of_the_correct_data($invalidData)
 {
     Surname::deserialize($invalidData);
 }
 public function serialize()
 {
     return array('contact_type' => $this->contactType->serialize(), 'email_address_list' => $this->emailAddressList->serialize(), 'telephone_number_list' => $this->telephoneNumberList->serialize(), 'given_name' => $this->givenName ? $this->givenName->serialize() : null, 'surname' => $this->surname ? $this->surname->serialize() : null, 'company' => $this->company ? $this->company->serialize() : null);
 }