Skip to content

Commit

Permalink
Add Identity#getId():IdentityId.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinier Kip committed Dec 16, 2014
1 parent c8fee57 commit 646cb5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Surfnet/Stepup/Identity/Api/Identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ public function provePossessionOfPhone(SecondFactorId $secondFactorId, PhoneNumb
*/
public function verifyEmail($verificationNonce);

/**
* @return IdentityId
*/
public function getId();

/**
* @return NameId
*/
Expand Down
5 changes: 5 additions & 0 deletions src/Surfnet/Stepup/Identity/Identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ private function assertUserMayAddSecondFactor()
}
}

public function getId()
{
return $this->id;
}

/**
* @return NameId
*/
Expand Down

0 comments on commit 646cb5a

Please sign in to comment.