src/Surfnet/Stepup/Identity/Event/IdentityCreatedEvent.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 78-88 (lines=11) @@ | 
                                                            
                                    | 75 |  |         return $metadata; | 
                                                            
                                    | 76 |  |     } | 
                                                            
                                    | 77 |  |  | 
                                                            
                                    | 78 |  |     public static function deserialize(array $data) | 
                                                            
                                    | 79 |  |     { | 
                                                            
                                    | 80 |  |         return new self( | 
                                                            
                                    | 81 |  |             new IdentityId($data['id']), | 
                                                            
                                    | 82 |  |             new Institution($data['institution']), | 
                                                            
                                    | 83 |  |             new NameId($data['name_id']), | 
                                                            
                                    | 84 |  |             CommonName::unknown(), | 
                                                            
                                    | 85 |  |             Email::unknown(), | 
                                                            
                                    | 86 |  |             new Locale($data['preferred_locale']) | 
                                                            
                                    | 87 |  |         ); | 
                                                            
                                    | 88 |  |     } | 
                                                            
                                    | 89 |  |  | 
                                                            
                                    | 90 |  |     public function serialize() | 
                                                            
                                    | 91 |  |     { | 
                                                                        
                 
                                                            
                    
src/Surfnet/Stepup/Identity/Event/RegistrationAuthorityRetractedEvent.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 70-79 (lines=10) @@ | 
                                                            
                                    | 67 |  |         return $metadata; | 
                                                            
                                    | 68 |  |     } | 
                                                            
                                    | 69 |  |  | 
                                                            
                                    | 70 |  |     public static function deserialize(array $data) | 
                                                            
                                    | 71 |  |     { | 
                                                            
                                    | 72 |  |         return new self( | 
                                                            
                                    | 73 |  |             new IdentityId($data['identity_id']), | 
                                                            
                                    | 74 |  |             new Institution($data['identity_institution']), | 
                                                            
                                    | 75 |  |             new NameId($data['name_id']), | 
                                                            
                                    | 76 |  |             CommonName::unknown(), | 
                                                            
                                    | 77 |  |             Email::unknown() | 
                                                            
                                    | 78 |  |         ); | 
                                                            
                                    | 79 |  |     } | 
                                                            
                                    | 80 |  |  | 
                                                            
                                    | 81 |  |     public function serialize() | 
                                                            
                                    | 82 |  |     { | 
                                                                        
                 
                                                            
                    
src/Surfnet/Stepup/Identity/Event/YubikeySecondFactorBootstrappedEvent.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 115-127 (lines=13) @@ | 
                                                            
                                    | 112 |  |         ]; | 
                                                            
                                    | 113 |  |     } | 
                                                            
                                    | 114 |  |  | 
                                                            
                                    | 115 |  |     public static function deserialize(array $data) | 
                                                            
                                    | 116 |  |     { | 
                                                            
                                    | 117 |  |         return new self( | 
                                                            
                                    | 118 |  |             new IdentityId($data['identity_id']), | 
                                                            
                                    | 119 |  |             new NameId($data['name_id']), | 
                                                            
                                    | 120 |  |             new Institution($data['identity_institution']), | 
                                                            
                                    | 121 |  |             CommonName::unknown(), | 
                                                            
                                    | 122 |  |             Email::unknown(), | 
                                                            
                                    | 123 |  |             new Locale($data['preferred_locale']), | 
                                                            
                                    | 124 |  |             new SecondFactorId($data['second_factor_id']), | 
                                                            
                                    | 125 |  |             YubikeyPublicId::unknown() | 
                                                            
                                    | 126 |  |         ); | 
                                                            
                                    | 127 |  |     } | 
                                                            
                                    | 128 |  |  | 
                                                            
                                    | 129 |  |     public function getSensitiveData() | 
                                                            
                                    | 130 |  |     { | 
                                                                        
                 
                                                            
                    
src/Surfnet/Stepup/Identity/Event/GssfPossessionProvenAndVerifiedEvent.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 116-129 (lines=14) @@ | 
                                                            
                                    | 113 |  |         return $metadata; | 
                                                            
                                    | 114 |  |     } | 
                                                            
                                    | 115 |  |  | 
                                                            
                                    | 116 |  |     public static function deserialize(array $data) | 
                                                            
                                    | 117 |  |     { | 
                                                            
                                    | 118 |  |         return new self( | 
                                                            
                                    | 119 |  |             new IdentityId($data['identity_id']), | 
                                                            
                                    | 120 |  |             new Institution($data['identity_institution']), | 
                                                            
                                    | 121 |  |             new SecondFactorId($data['second_factor_id']), | 
                                                            
                                    | 122 |  |             new StepupProvider($data['stepup_provider']), | 
                                                            
                                    | 123 |  |             GssfId::unknown(), | 
                                                            
                                    | 124 |  |             CommonName::unknown(), | 
                                                            
                                    | 125 |  |             Email::unknown(), | 
                                                            
                                    | 126 |  |             DateTime::fromString($data['registration_requested_at']), | 
                                                            
                                    | 127 |  |             (string) $data['registration_code'] | 
                                                            
                                    | 128 |  |         ); | 
                                                            
                                    | 129 |  |     } | 
                                                            
                                    | 130 |  |  | 
                                                            
                                    | 131 |  |     public function serialize() | 
                                                            
                                    | 132 |  |     { |