@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * @param Institution $institution |
| 50 | - * @return RegistrationAuthority |
|
| 50 | + * @return boolean |
|
| 51 | 51 | */ |
| 52 | 52 | public function exists(Institution $institution) |
| 53 | 53 | { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * @param Institution $institution |
| 52 | - * @return Institution |
|
| 52 | + * @return InstitutionRole |
|
| 53 | 53 | */ |
| 54 | 54 | public function get(Institution $institution) |
| 55 | 55 | { |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * @param Institution $institution |
| 61 | - * @return Institution |
|
| 61 | + * @return boolean |
|
| 62 | 62 | */ |
| 63 | 63 | public function exists(Institution $institution) |
| 64 | 64 | { |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @return mixed The object instance |
|
| 56 | + * @return AppointedAsRaaEvent The object instance |
|
| 57 | 57 | */ |
| 58 | 58 | public static function deserialize(array $data) |
| 59 | 59 | { |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @return mixed The object instance |
|
| 56 | + * @return AppointedAsRaEvent The object instance |
|
| 57 | 57 | */ |
| 58 | 58 | public static function deserialize(array $data) |
| 59 | 59 | { |
@@ -66,6 +66,7 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | 68 | * Construct a new aggregate root. Aggregate roots can only be affected by events, so no parameters are allowed. |
| 69 | + * @return void |
|
| 69 | 70 | */ |
| 70 | 71 | public function __construct(); |
| 71 | 72 | |
@@ -297,13 +298,14 @@ discard block |
||
| 297 | 298 | public function getVerifiedSecondFactor(SecondFactorId $secondFactorId); |
| 298 | 299 | |
| 299 | 300 | /** |
| 300 | - * @return IdentityId We're deviating from Broadway's official API, as they accept toString-able VOs as IDs, and we |
|
| 301 | + * @return string We're deviating from Broadway's official API, as they accept toString-able VOs as IDs, and we |
|
| 301 | 302 | * require the IdentityId VO in our SensitiveDataEventStoreDecorator. |
| 302 | 303 | */ |
| 303 | 304 | public function getAggregateRootId(): string; |
| 304 | 305 | |
| 305 | 306 | /** |
| 306 | 307 | * @param int $numberOfTokens |
| 308 | + * @return void |
|
| 307 | 309 | */ |
| 308 | 310 | public function setMaxNumberOfTokens($numberOfTokens); |
| 309 | 311 | } |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * @param IdentityId $identityId The RA's identity id. |
| 50 | - * @return null|RaListing[] |
|
| 50 | + * @return RaListing[] |
|
| 51 | 51 | */ |
| 52 | 52 | public function findByIdentityId(IdentityId $identityId) |
| 53 | 53 | { |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | |
| 242 | 242 | /** |
| 243 | 243 | * @param string[] $institutions |
| 244 | - * @param $configuredInstitutions |
|
| 244 | + * @param string[] $configuredInstitutions |
|
| 245 | 245 | * @return string[] |
| 246 | 246 | */ |
| 247 | 247 | public function determineNonExistentInstitutions(array $institutions, $configuredInstitutions) |
@@ -270,8 +270,8 @@ discard block |
||
| 270 | 270 | * - Or be empty |
| 271 | 271 | * |
| 272 | 272 | * @param $authorizationSettings |
| 273 | - * @param $institution |
|
| 274 | - * @param $propertyPath |
|
| 273 | + * @param string $institution |
|
| 274 | + * @param string $propertyPath |
|
| 275 | 275 | * @throws \Assert\AssertionFailedException |
| 276 | 276 | */ |
| 277 | 277 | private function validateAuthorizationSettings($authorizationSettings, $institution, $propertyPath) |
@@ -93,6 +93,10 @@ discard block |
||
| 93 | 93 | return true; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | + /** |
|
| 97 | + * @param \Surfnet\StepupMiddleware\ApiBundle\Identity\Entity\Identity $identity |
|
| 98 | + * @param \Surfnet\StepupMiddleware\ApiBundle\Identity\Entity\VerifiedSecondFactor|null $verifiedSecondFactor |
|
| 99 | + */ |
|
| 96 | 100 | protected function vetSecondFactor($tokenType, $actorId, $identity, $secondFactorId, $verifiedSecondFactor, $phoneNumber) |
| 97 | 101 | { |
| 98 | 102 | $command = new VetSecondFactorCommand(); |
@@ -117,6 +121,10 @@ discard block |
||
| 117 | 121 | $this->enricher->setMetadata($metadata); |
| 118 | 122 | } |
| 119 | 123 | |
| 124 | + /** |
|
| 125 | + * @param \Surfnet\StepupMiddleware\ApiBundle\Identity\Entity\Identity $identity |
|
| 126 | + * @param \Surfnet\StepupMiddleware\ApiBundle\Identity\Entity\UnverifiedSecondFactor|null $unverifiedSecondFactor |
|
| 127 | + */ |
|
| 120 | 128 | protected function verifyEmail($identity, $unverifiedSecondFactor) |
| 121 | 129 | { |
| 122 | 130 | $command = new VerifyEmailCommand(); |
@@ -167,6 +167,7 @@ |
||
| 167 | 167 | * @param string $email |
| 168 | 168 | * @param DateTime $requestedAt |
| 169 | 169 | * @param $registrationCode |
| 170 | + * @param \Surfnet\StepupMiddleware\ApiBundle\Configuration\Entity\RaLocation[] $raLocations |
|
| 170 | 171 | * @return int |
| 171 | 172 | */ |
| 172 | 173 | private function sendReminderWithInstitution( |