@@ -25,6 +25,7 @@ discard block |
||
| 25 | 25 | * Handles the given user event. |
| 26 | 26 | * |
| 27 | 27 | * @param UserEvent $anEvent The domain event |
| 28 | + * @return void |
|
| 28 | 29 | */ |
| 29 | 30 | public function handle(UserEvent $anEvent); |
| 30 | 31 | |
@@ -32,6 +33,7 @@ discard block |
||
| 32 | 33 | * {@inheritdoc} |
| 33 | 34 | * |
| 34 | 35 | * @param UserEvent $anEvent The domain event |
| 36 | + * @return boolean |
|
| 35 | 37 | */ |
| 36 | 38 | public function isSubscribedTo(UserEvent $anEvent); |
| 37 | 39 | } |
@@ -60,6 +60,7 @@ discard block |
||
| 60 | 60 | * Persists the given user. |
| 61 | 61 | * |
| 62 | 62 | * @param User $aUser The user |
| 63 | + * @return void |
|
| 63 | 64 | */ |
| 64 | 65 | public function persist(User $aUser); |
| 65 | 66 | |
@@ -67,6 +68,7 @@ discard block |
||
| 67 | 68 | * Removes the given user. |
| 68 | 69 | * |
| 69 | 70 | * @param User $aUser The user |
| 71 | + * @return void |
|
| 70 | 72 | */ |
| 71 | 73 | public function remove(User $aUser); |
| 72 | 74 | |
@@ -22,7 +22,8 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * Writes the high level user domain concepts. |
| 24 | 24 | * |
| 25 | - * @param mixed $aUser The user, it can be domain user or just a DTO |
|
| 25 | + * @param \BenGorUser\User\Domain\Model\User $aUser The user, it can be domain user or just a DTO |
|
| 26 | + * @return void |
|
| 26 | 27 | */ |
| 27 | 28 | public function write($aUser); |
| 28 | 29 | |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | * @param UserId $anId The id |
| 137 | 137 | * @param UserEmail $anEmail The email |
| 138 | 138 | * @param UserPassword $aPassword The encoded password |
| 139 | - * @param array $userRoles Array which contains the roles |
|
| 139 | + * @param UserRole[] $userRoles Array which contains the roles |
|
| 140 | 140 | * |
| 141 | 141 | * @return static |
| 142 | 142 | */ |
@@ -598,7 +598,7 @@ discard block |
||
| 598 | 598 | * This method is an extension point that it allows |
| 599 | 599 | * to add more roles easily in the domain. |
| 600 | 600 | * |
| 601 | - * @return array |
|
| 601 | + * @return string[] |
|
| 602 | 602 | */ |
| 603 | 603 | public static function availableRoles() |
| 604 | 604 | { |
@@ -362,7 +362,7 @@ |
||
| 362 | 362 | /** |
| 363 | 363 | * Transforms given user roles into encoded plain json array. |
| 364 | 364 | * |
| 365 | - * @param array $userRoles Array which contains the user roles |
|
| 365 | + * @param UserRole[] $userRoles Array which contains the user roles |
|
| 366 | 366 | * |
| 367 | 367 | * @return string |
| 368 | 368 | */ |