@@ -16,5 +16,8 @@ |
||
16 | 16 | |
17 | 17 | interface Resolver |
18 | 18 | { |
19 | + /** |
|
20 | + * @param string $args |
|
21 | + */ |
|
19 | 22 | public function resolve($args); |
20 | 23 | } |
@@ -18,5 +18,8 @@ |
||
18 | 18 | { |
19 | 19 | public function serialize($object) : string; |
20 | 20 | |
21 | + /** |
|
22 | + * @return \Kreta\SharedKernel\Event\AsyncEvent |
|
23 | + */ |
|
21 | 24 | public function deserialize(string $serializedObject); |
22 | 25 | } |
@@ -16,5 +16,10 @@ |
||
16 | 16 | |
17 | 17 | interface ProjectSpecificationFactory |
18 | 18 | { |
19 | + /** |
|
20 | + * @param null|string $name |
|
21 | + * |
|
22 | + * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Project\DoctrineORMFilterableSpecification |
|
23 | + */ |
|
19 | 24 | public function buildFilterableSpecification(array $organizationIds, $name, int $offset = 0, int $limit = -1); |
20 | 25 | } |
@@ -16,6 +16,13 @@ |
||
16 | 16 | |
17 | 17 | interface TaskSpecificationFactory |
18 | 18 | { |
19 | + /** |
|
20 | + * @param null|string $title |
|
21 | + * @param TaskPriority $priority |
|
22 | + * @param TaskProgress $progress |
|
23 | + * |
|
24 | + * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Project\Task\DoctrineORMFilterableSpecification |
|
25 | + */ |
|
19 | 26 | public function buildFilterableSpecification( |
20 | 27 | array $projectIds, |
21 | 28 | $title, |
@@ -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; |
@@ -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(); |