src/Surfnet/StepupMiddlewareClientBundle/Identity/Dto/Identity.php 1 location
|
@@ 69-80 (lines=12) @@
|
| 66 |
|
*/ |
| 67 |
|
public $preferredLocale; |
| 68 |
|
|
| 69 |
|
public static function fromData(array $data) |
| 70 |
|
{ |
| 71 |
|
$identity = new self(); |
| 72 |
|
$identity->id = $data['id']; |
| 73 |
|
$identity->nameId = $data['name_id']; |
| 74 |
|
$identity->institution = $data['institution']; |
| 75 |
|
$identity->email = $data['email']; |
| 76 |
|
$identity->commonName = $data['common_name']; |
| 77 |
|
$identity->preferredLocale = $data['preferred_locale']; |
| 78 |
|
|
| 79 |
|
return $identity; |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
/** |
| 83 |
|
* Used so that we can serialize the Identity within the SAMLToken, so we can store the token in a session. |
src/Surfnet/StepupMiddlewareClientBundle/Identity/Dto/RaCandidate.php 1 location
|
@@ 70-80 (lines=11) @@
|
| 67 |
|
* @param array $data |
| 68 |
|
* @return static |
| 69 |
|
*/ |
| 70 |
|
public static function fromData(array $data) |
| 71 |
|
{ |
| 72 |
|
$raCandidate = new self(); |
| 73 |
|
$raCandidate->identityId = $data['identity_id']; |
| 74 |
|
$raCandidate->institution = $data['institution']; |
| 75 |
|
$raCandidate->nameId = $data['name_id']; |
| 76 |
|
$raCandidate->commonName = $data['common_name']; |
| 77 |
|
$raCandidate->email = $data['email']; |
| 78 |
|
|
| 79 |
|
return $raCandidate; |
| 80 |
|
} |
| 81 |
|
} |
| 82 |
|
|