@@ -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 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | * @param UserId $anId The id |
| 103 | 103 | * @param UserEmail $anEmail The email |
| 104 | 104 | * @param UserPassword $aPassword The encoded password |
| 105 | - * @param array $userRoles Array which contains the roles |
|
| 105 | + * @param UserRole[] $userRoles Array which contains the roles |
|
| 106 | 106 | */ |
| 107 | 107 | public function __construct(UserId $anId, UserEmail $anEmail, UserPassword $aPassword, array $userRoles) |
| 108 | 108 | { |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | * This method is an extension point that it allows |
| 363 | 363 | * to add more roles easily in the domain. |
| 364 | 364 | * |
| 365 | - * @return array |
|
| 365 | + * @return string[] |
|
| 366 | 366 | */ |
| 367 | 367 | public static function availableRoles() |
| 368 | 368 | { |
@@ -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 | |