Completed
Pull Request — master (#390)
by Beñat
12:47
created
SharedKernel/src/Kreta/SharedKernel/Serialization/Serializer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@
 block discarded – undo
16 16
 
17 17
 interface Serializer
18 18
 {
19
+    /**
20
+     * @param \Kreta\SharedKernel\Event\StoredEvent $object
21
+     */
19 22
     public function serialize($object) : string;
20 23
 
21 24
     public function deserialize(string $serializedObject);
Please login to merge, or discard this patch.
SharedKernel/src/Kreta/SharedKernel/Event/EventStore.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -16,9 +16,15 @@
 block discarded – undo
16 16
 
17 17
 interface EventStore
18 18
 {
19
+    /**
20
+     * @return void
21
+     */
19 22
     public function append(Stream $stream) : void;
20 23
 
21 24
     public function streamOfName(StreamName $name) : Stream;
22 25
 
26
+    /**
27
+     * @param \DateTimeImmutable $since
28
+     */
23 29
     public function eventsSince(?\DateTimeInterface $since, int $offset = 0, int $limit = -1) : array;
24 30
 }
Please login to merge, or discard this patch.
src/Kreta/TaskManager/Domain/Model/Project/ProjectRepository.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -20,10 +20,19 @@
 block discarded – undo
20 20
 
21 21
     public function query($specification) : array;
22 22
 
23
+    /**
24
+     * @return Project|null
25
+     */
23 26
     public function singleResultQuery($specification) : ?Project;
24 27
 
28
+    /**
29
+     * @return void
30
+     */
25 31
     public function persist(Project $project) : void;
26 32
 
33
+    /**
34
+     * @return void
35
+     */
27 36
     public function remove(Project $project) : void;
28 37
 
29 38
     public function count($specification) : int;
Please login to merge, or discard this patch.
Kreta/TaskManager/Domain/Model/Project/Task/TaskSpecificationFactory.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -19,6 +19,13 @@  discard block
 block discarded – undo
19 19
 
20 20
 interface TaskSpecificationFactory
21 21
 {
22
+    /**
23
+     * @param null|string $title
24
+     * @param TaskPriority $priority
25
+     * @param TaskProgress $progress
26
+     *
27
+     * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Project\Task\DoctrineORMFilterableSpecification
28
+     */
22 29
     public function buildFilterableSpecification(
23 30
         array $projectIds,
24 31
         ?string $title,
@@ -31,9 +38,18 @@  discard block
 block discarded – undo
31 38
         int $limit = -1
32 39
     );
33 40
 
41
+    /**
42
+     * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Project\Task\DoctrineORMFilterableSpecification
43
+     */
34 44
     public function buildByProjectSpecification(ProjectId $projectId, int $offset = 0, int $limit = -1);
35 45
 
46
+    /**
47
+     * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Project\Task\DoctrineORMFilterableSpecification
48
+     */
36 49
     public function buildByAssigneeSpecification(MemberId $assigneeId, int $offset = 0, int $limit = -1);
37 50
 
51
+    /**
52
+     * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Project\Task\DoctrineORMFilterableSpecification
53
+     */
38 54
     public function buildByReporterSpecification(MemberId $reporterId, int $offset = 0, int $limit = -1);
39 55
 }
Please login to merge, or discard this patch.
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(?string $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.