@@ -113,6 +113,9 @@ discard block |
||
| 113 | 113 | ); |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | + /** |
|
| 117 | + * @param null|string $userId |
|
| 118 | + */ |
|
| 116 | 119 | private function addUserId($userIds, Organization $organization, ? string $userId) |
| 117 | 120 | { |
| 118 | 121 | if (null !== $userId) { |
@@ -122,6 +125,9 @@ discard block |
||
| 122 | 125 | return $userIds; |
| 123 | 126 | } |
| 124 | 127 | |
| 128 | + /** |
|
| 129 | + * @param null|string $parentId |
|
| 130 | + */ |
|
| 125 | 131 | private function parentTask(? string $parentId, UserId $userId) : ? TaskId |
| 126 | 132 | { |
| 127 | 133 | if (null === $parentId) { |
@@ -127,6 +127,9 @@ discard block |
||
| 127 | 127 | }, $tasks); |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | + /** |
|
| 131 | + * @param null|string $userId |
|
| 132 | + */ |
|
| 130 | 133 | private function addUserId($userIds, Organization $organization, ? string $userId) |
| 131 | 134 | { |
| 132 | 135 | if (null !== $userId) { |
@@ -136,6 +139,9 @@ discard block |
||
| 136 | 139 | return $userIds; |
| 137 | 140 | } |
| 138 | 141 | |
| 142 | + /** |
|
| 143 | + * @param null|string $parentId |
|
| 144 | + */ |
|
| 139 | 145 | private function parentTask(? string $parentId, UserId $userId) : ? TaskId |
| 140 | 146 | { |
| 141 | 147 | if (null === $parentId) { |
@@ -145,6 +145,9 @@ |
||
| 145 | 145 | return new OwnerCollection($this->owners->getValues()); |
| 146 | 146 | } |
| 147 | 147 | |
| 148 | + /** |
|
| 149 | + * @return Member |
|
| 150 | + */ |
|
| 148 | 151 | public function owner(UserId $userId) |
| 149 | 152 | { |
| 150 | 153 | foreach ($this->owners() as $owner) { |
@@ -16,12 +16,21 @@ |
||
| 16 | 16 | |
| 17 | 17 | interface ProjectRepository |
| 18 | 18 | { |
| 19 | + /** |
|
| 20 | + * @return Project|null |
|
| 21 | + */ |
|
| 19 | 22 | public function projectOfId(ProjectId $id); |
| 20 | 23 | |
| 21 | 24 | public function query($specification); |
| 22 | 25 | |
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 23 | 29 | public function persist(Project $project); |
| 24 | 30 | |
| 31 | + /** |
|
| 32 | + * @return void |
|
| 33 | + */ |
|
| 25 | 34 | public function remove(Project $project); |
| 26 | 35 | |
| 27 | 36 | public function count($specification) : int; |
@@ -16,5 +16,8 @@ |
||
| 16 | 16 | |
| 17 | 17 | interface CommandBus |
| 18 | 18 | { |
| 19 | + /** |
|
| 20 | + * @return void |
|
| 21 | + */ |
|
| 19 | 22 | public function handle($command); |
| 20 | 23 | } |
@@ -16,5 +16,8 @@ |
||
| 16 | 16 | |
| 17 | 17 | interface QueryBus |
| 18 | 18 | { |
| 19 | + /** |
|
| 20 | + * @return void |
|
| 21 | + */ |
|
| 19 | 22 | public function handle($query, &$result); |
| 20 | 23 | } |
@@ -18,5 +18,8 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface AsyncEventSubscriber |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function handle(AsyncDomainEvent $event); |
| 22 | 25 | } |
@@ -18,6 +18,9 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface MemberDataTransformer |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function write(Member $member); |
| 22 | 25 | |
| 23 | 26 | public function read(); |
@@ -18,6 +18,9 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface OrganizationDataTransformer |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function write(Organization $organization); |
| 22 | 25 | |
| 23 | 26 | public function read(); |