@@ -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 | |
@@ -567,7 +567,7 @@ |
||
| 567 | 567 | * This method is an extension point that it allows |
| 568 | 568 | * to add more roles easily in the domain. |
| 569 | 569 | * |
| 570 | - * @return array |
|
| 570 | + * @return string[] |
|
| 571 | 571 | */ |
| 572 | 572 | public static function availableRoles() |
| 573 | 573 | { |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | /** |
| 34 | 34 | * Constructor. |
| 35 | 35 | * |
| 36 | - * @param string|int|null $anId The id in a primitive type |
|
| 36 | + * @param string $anId The id in a primitive type |
|
| 37 | 37 | * |
| 38 | 38 | * @throws UserIdInvalidException when the id is not valid |
| 39 | 39 | */ |