/**
  * @test
  * @group        metadata
  * @group        contactperson
  *
  * @dataProvider \OpenConext\Value\TestDataProvider::notArray
  * @expectedException InvalidArgumentException
  *
  * @param mixed $notArray
  */
 public function deserialization_requires_an_array($notArray)
 {
     TelephoneNumberList::deserialize($notArray);
 }
예제 #2
0
 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);
 }