Completed
Pull Request — master (#345)
by Gorka
04:04
created
TaskManager/Domain/Model/Organization/OrganizationSpecificationFactory.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -19,7 +19,15 @@
 block discarded – undo
19 19
 
20 20
 interface OrganizationSpecificationFactory
21 21
 {
22
+    /**
23
+     * @param null|string $name
24
+     *
25
+     * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Organization\DoctrineORMFilterableSpecification
26
+     */
22 27
     public function buildFilterableSpecification($name, UserId $userId, int $offset = 0, int $limit = -1);
23 28
 
29
+    /**
30
+     * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Organization\DoctrineORMBySlugSpecification
31
+     */
24 32
     public function buildBySlugSpecification(Slug $slug);
25 33
 }
Please login to merge, or discard this patch.
TaskManager/src/Kreta/TaskManager/Domain/Model/User/UserRepository.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,5 +18,8 @@
 block discarded – undo
18 18
 {
19 19
     public function userOfId(UserId $id);
20 20
 
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function persist(User $user);
22 25
 }
Please login to merge, or discard this patch.
SharedKernel/src/Kreta/SharedKernel/Application/CommandBus.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -16,5 +16,8 @@
 block discarded – undo
16 16
 
17 17
 interface CommandBus
18 18
 {
19
+    /**
20
+     * @return void
21
+     */
19 22
     public function handle($command) : void;
20 23
 }
Please login to merge, or discard this patch.
SharedKernel/src/Kreta/SharedKernel/Application/QueryBus.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -16,5 +16,8 @@
 block discarded – undo
16 16
 
17 17
 interface QueryBus
18 18
 {
19
+    /**
20
+     * @return void
21
+     */
19 22
     public function handle($query, &$result) : void;
20 23
 }
Please login to merge, or discard this patch.
SharedKernel/src/Kreta/SharedKernel/Domain/Event/AsyncEventSubscriber.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,5 +18,8 @@
 block discarded – undo
18 18
 
19 19
 interface AsyncEventSubscriber
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function handle(AsyncDomainEvent $event) : void;
22 25
 }
Please login to merge, or discard this patch.
SharedKernel/src/Kreta/SharedKernel/Event/EventStore.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@
 block discarded – undo
18 18
 
19 19
 interface EventStore
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function appendTo(EventStream $events) : void;
22 25
 
23 26
     public function streamOfId(Id $aggregateId) : EventStream;
Please login to merge, or discard this patch.
src/Kreta/TaskManager/Domain/Model/Project/ProjectSpecificationFactory.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -18,7 +18,15 @@
 block discarded – undo
18 18
 
19 19
 interface ProjectSpecificationFactory
20 20
 {
21
+    /**
22
+     * @param null|string $name
23
+     *
24
+     * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Project\DoctrineORMFilterableSpecification
25
+     */
21 26
     public function buildFilterableSpecification(array $organizationIds, $name, int $offset = 0, int $limit = -1);
22 27
 
28
+    /**
29
+     * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Project\DoctrineORMBySlugSpecification
30
+     */
23 31
     public function buildBySlugSpecification(Slug $slug, Slug $organizationSlug);
24 32
 }
Please login to merge, or discard this patch.
Kreta/TaskManager/Domain/Model/Project/Task/TaskSpecificationFactory.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -18,6 +18,13 @@  discard block
 block discarded – undo
18 18
 
19 19
 interface TaskSpecificationFactory
20 20
 {
21
+    /**
22
+     * @param null|string $title
23
+     * @param TaskPriority $priority
24
+     * @param TaskProgress $progress
25
+     *
26
+     * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Project\Task\DoctrineORMFilterableSpecification
27
+     */
21 28
     public function buildFilterableSpecification(
22 29
         array $projectIds,
23 30
         ?string $title,
@@ -30,5 +37,8 @@  discard block
 block discarded – undo
30 37
         int $limit = -1
31 38
     );
32 39
 
40
+    /**
41
+     * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Project\Task\DoctrineORMFilterableSpecification
42
+     */
33 43
     public function buildByProjectSpecification(ProjectId $projectId);
34 44
 }
Please login to merge, or discard this patch.
src/Kreta/TaskManager/Domain/Model/Project/ProjectRepository.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -16,14 +16,26 @@
 block discarded – undo
16 16
 
17 17
 interface ProjectRepository
18 18
 {
19
+    /**
20
+     * @return Project|null
21
+     */
19 22
     public function projectOfId(ProjectId $id) : ?Project;
20 23
 
21 24
     public function query($specification) : array;
22 25
 
26
+    /**
27
+     * @return Project|null
28
+     */
23 29
     public function singleResultQuery($specification) : ?Project;
24 30
 
31
+    /**
32
+     * @return void
33
+     */
25 34
     public function persist(Project $project) : void;
26 35
 
36
+    /**
37
+     * @return void
38
+     */
27 39
     public function remove(Project $project) : void;
28 40
 
29 41
     public function count($specification) : int;
Please login to merge, or discard this patch.