/**
  * @test
  * @group        metadata
  * @group        contactperson
  *
  * @dataProvider \OpenConext\Value\TestDataProvider::notStringOrEmptyString
  * @expectedException InvalidArgumentException
  *
  * @param mixed $invalidData
  */
 public function deserialization_requires_valid_data($invalidData)
 {
     Company::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);
 }