1 | <?php |
||
38 | class TokenBootstrapService |
||
39 | { |
||
40 | /** @var IdentityRepository */ |
||
41 | private $identityRepository; |
||
42 | /** @var UnverifiedSecondFactorRepository */ |
||
43 | private $unverifiedSecondFactorRepository; |
||
44 | /** @var VerifiedSecondFactorRepository */ |
||
45 | private $verifiedSecondFactorRepository; |
||
46 | /** @var InstitutionConfigurationOptionsRepository */ |
||
47 | private $institutionConfigurationRepository; |
||
48 | |||
49 | public function __construct( |
||
60 | |||
61 | /** |
||
62 | * @param $actorId |
||
63 | * @return Identity|null |
||
|
|||
64 | */ |
||
65 | public function findIdentityById($actorId) |
||
69 | |||
70 | /** |
||
71 | * @param $institution |
||
72 | * @return InstitutionConfigurationOptions |
||
73 | * @throws NonUniqueResultException |
||
74 | */ |
||
75 | public function findConfigurationOptionsFor($institution) |
||
79 | |||
80 | /** |
||
81 | * @param $identityId |
||
82 | * @param $tokenType |
||
83 | * @return UnverifiedSecondFactor|null |
||
84 | */ |
||
85 | public function findUnverifiedToken($identityId, $tokenType) |
||
91 | |||
92 | /** |
||
93 | * @param $identityId |
||
94 | * @param $tokenType |
||
95 | * @return VerifiedSecondFactor|null |
||
96 | */ |
||
97 | public function findVerifiedToken($identityId, $tokenType) |
||
103 | |||
104 | /** |
||
105 | * @param NameId $nameId |
||
106 | * @param IdentityInstitution $institution |
||
107 | * @return Identity |
||
108 | */ |
||
109 | public function findOneByNameIdAndInstitution(NameId $nameId, IdentityInstitution $institution) |
||
113 | |||
114 | public function hasIdentityWithNameIdAndInstitution(NameId $nameId, IdentityInstitution $institution) |
||
118 | } |
||
119 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.