Ejemplo n.º 1
0
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     Assertion::keysExist($data, array('endpoint', 'index', 'is_default'));
     return new self(Endpoint::deserialize($data['endpoint']), $data['index'], $data['is_default']);
 }
Ejemplo n.º 2
0
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     Assertion::keysExist($data, array('name', 'language'));
     return new self($data['name'], $data['language']);
 }
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     $nameIdFormats = array_map(function ($nameIdFormat) {
         return NameIdFormat::deserialize($nameIdFormat);
     }, $data);
     return new self($nameIdFormats);
 }
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     $contactPersons = array_map(function ($contactPerson) {
         return ContactPerson::deserialize($contactPerson);
     }, $data);
     return new self($contactPersons);
 }
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     $scopes = array_map(function ($scope) {
         return ShibbolethMetadataScope::deserialize($scope);
     }, $data);
     return new self($scopes);
 }
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     Assertion::keysExist($data, array('is_regexp', 'scope'));
     return new self($data['scope'], $data['is_regexp']);
 }
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     $telephoneNumbers = array_map(function ($telephoneNumber) {
         return TelephoneNumber::deserialize($telephoneNumber);
     }, $data);
     return new self($telephoneNumbers);
 }
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     $emailAddresses = array_map(function ($emailAddress) {
         return EmailAddress::deserialize($emailAddress);
     }, $data);
     return new self($emailAddresses);
 }
Ejemplo n.º 9
0
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     Assertion::keysExist($data, array('organization_names', 'organization_display_names', 'organization_urls'));
     return new self(OrganizationNameList::deserialize($data['organization_names']), OrganizationDisplayNameList::deserialize($data['organization_display_names']), OrganizationUrlList::deserialize($data['organization_urls']));
 }
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     $displayNames = array_map(function ($displayName) {
         return OrganizationDisplayName::deserialize($displayName);
     }, $data);
     return new self($displayNames);
 }
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     $organizationUrls = array_map(function ($organizationUrl) {
         return OrganizationUrl::deserialize($organizationUrl);
     }, $data);
     return new self($organizationUrls);
 }
Ejemplo n.º 12
0
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     Assertion::keysExist($data, array('binding', 'location', 'response_location'));
     return new self(Binding::deserialize($data['binding']), $data['location'], $data['response_location']);
 }
Ejemplo n.º 13
0
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     Assertion::keysExist($data, array('contact_type', 'email_address_list', 'telephone_number_list', 'given_name', 'surname', 'company'));
     $contact = new self(ContactType::deserialize($data['contact_type']), EmailAddressList::deserialize($data['email_address_list']), TelephoneNumberList::deserialize($data['telephone_number_list']));
     if ($data['given_name']) {
         $contact->givenName = GivenName::deserialize($data['given_name']);
     }
     if ($data['surname']) {
         $contact->surname = Surname::deserialize($data['surname']);
     }
     if ($data['company']) {
         $contact->company = Company::deserialize($data['company']);
     }
     return $contact;
 }
Ejemplo n.º 14
0
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     Assertion::keysExist($data, array('entity_id', 'entity_type'));
     return new self(EntityId::deserialize($data['entity_id']), EntityType::deserialize($data['entity_type']));
 }