@@ -18,6 +18,13 @@ discard block |
||
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 |
||
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 | } |
@@ -22,6 +22,9 @@ |
||
22 | 22 | private $parentId; |
23 | 23 | private $occurredOn; |
24 | 24 | |
25 | + /** |
|
26 | + * @param null|TaskId $parentId |
|
27 | + */ |
|
25 | 28 | public function __construct(TaskId $id, ?TaskId $parentId) |
26 | 29 | { |
27 | 30 | $this->id = $id; |