Skip to content

Commit 646cb5a

Browse files
author
Reinier Kip
committed
Add Identity#getId():IdentityId.
1 parent c8fee57 commit 646cb5a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Surfnet/Stepup/Identity/Api/Identity.php

+5
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ public function provePossessionOfPhone(SecondFactorId $secondFactorId, PhoneNumb
8181
*/
8282
public function verifyEmail($verificationNonce);
8383

84+
/**
85+
* @return IdentityId
86+
*/
87+
public function getId();
88+
8489
/**
8590
* @return NameId
8691
*/

src/Surfnet/Stepup/Identity/Identity.php

+5
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,11 @@ private function assertUserMayAddSecondFactor()
302302
}
303303
}
304304

305+
public function getId()
306+
{
307+
return $this->id;
308+
}
309+
305310
/**
306311
* @return NameId
307312
*/

0 commit comments

Comments
 (0)