@@ -18,7 +18,13 @@ |
||
| 18 | 18 | { |
| 19 | 19 | public function taskOfId(TaskId $id); |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function persist(Task $task); |
| 22 | 25 | |
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 23 | 29 | public function remove(Task $task); |
| 24 | 30 | } |
@@ -18,7 +18,13 @@ |
||
| 18 | 18 | { |
| 19 | 19 | public function taskOfId(TaskId $id); |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function persist(Task $task); |
| 22 | 25 | |
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 23 | 29 | public function remove(Task $task); |
| 24 | 30 | } |
@@ -18,7 +18,13 @@ |
||
| 18 | 18 | { |
| 19 | 19 | public function taskOfId(TaskId $id); |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function persist(Task $task); |
| 22 | 25 | |
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 23 | 29 | public function remove(Task $task); |
| 24 | 30 | } |
@@ -16,7 +16,13 @@ |
||
| 16 | 16 | |
| 17 | 17 | interface UserRepository |
| 18 | 18 | { |
| 19 | + /** |
|
| 20 | + * @return \Kreta\TaskManager\Domain\Model\Organization\OrganizationId |
|
| 21 | + */ |
|
| 19 | 22 | public function userOfId(UserId $id); |
| 20 | 23 | |
| 24 | + /** |
|
| 25 | + * @return void |
|
| 26 | + */ |
|
| 21 | 27 | public function persist(User $user); |
| 22 | 28 | } |
@@ -18,5 +18,10 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface OrganizationSpecificationFactory |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @param null|string $name |
|
| 23 | + * |
|
| 24 | + * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Organization\DoctrineORMFilterableSpecification |
|
| 25 | + */ |
|
| 21 | 26 | public function buildFilterableSpecification($name, UserId $userId, int $offset = 0, int $limit = -1); |
| 22 | 27 | } |
@@ -16,5 +16,8 @@ |
||
| 16 | 16 | |
| 17 | 17 | interface ProjectSpecificationFactory |
| 18 | 18 | { |
| 19 | + /** |
|
| 20 | + * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Project\DoctrineORMFilterableSpecification |
|
| 21 | + */ |
|
| 19 | 22 | public function buildFilterableSpecification(array $organizationIds, $name, int $offset = 0, int $limit = -1); |
| 20 | 23 | } |
@@ -16,6 +16,9 @@ |
||
| 16 | 16 | |
| 17 | 17 | interface EventStore |
| 18 | 18 | { |
| 19 | + /** |
|
| 20 | + * @return void |
|
| 21 | + */ |
|
| 19 | 22 | public function appendTo(EventStream $events); |
| 20 | 23 | |
| 21 | 24 | public function streamOfId(Id $aggregateId) : EventStream; |
@@ -83,6 +83,9 @@ |
||
| 83 | 83 | ); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @param null|string $parentId |
|
| 88 | + */ |
|
| 86 | 89 | private function parentTask(? string $parentId, UserId $userId) : ? TaskId |
| 87 | 90 | { |
| 88 | 91 | if (null === $parentId) { |
@@ -112,6 +112,9 @@ |
||
| 112 | 112 | }, $tasks); |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | + /** |
|
| 116 | + * @param null|string $parentId |
|
| 117 | + */ |
|
| 115 | 118 | private function parentTask(? string $parentId, UserId $userId) : ? TaskId |
| 116 | 119 | { |
| 117 | 120 | if (null === $parentId) { |