Completed
Pull Request — master (#227)
by Beñat
03:56
created

FilterTasksQuery::assigneeId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the Kreta package.
5
 *
6
 * (c) Beñat Espiña <[email protected]>
7
 * (c) Gorka Laucirica <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
declare(strict_types=1);
14
15
namespace Kreta\TaskManager\Application\Query\Project\Task;
16
17
class FilterTasksQuery
18
{
19
    private $userId;
20
    private $projectId;
21
    private $offset;
22
    private $limit;
23
    private $title;
24
    private $parentId;
25
    private $priority;
26
    private $progress;
27
    private $assigneeId;
28
    private $creatorId;
29
30
    public function __construct(
31
        string $userId,
32
        int $offset,
33
        int $limit,
34
        string $parentId = null,
35
        string $projectId = null,
36
        string $title = null,
37
        string $priority = null,
38
        string $progress = null,
39
        string $assigneeId = null,
40
        string $creatorId = null
41
    ) {
42
        $this->title = $title;
43
        $this->projectId = $projectId;
44
        $this->offset = $offset;
45
        $this->limit = $limit;
46
        $this->userId = $userId;
47
        $this->parentId = $parentId;
48
        $this->priority = $priority;
49
        $this->progress = $progress;
50
        $this->assigneeId = $assigneeId;
51
        $this->creatorId = $creatorId;
52
    }
53
54
    public function userId() : string
55
    {
56
        return $this->userId;
57
    }
58
59
    public function offset() : int
60
    {
61
        return $this->offset;
62
    }
63
64
    public function limit() : int
65
    {
66
        return $this->limit;
67
    }
68
69
    public function parentId()
70
    {
71
        return $this->parentId;
72
    }
73
74
    public function projectId()
75
    {
76
        return $this->projectId;
77
    }
78
79
    public function title() : ? string
80
    {
81
        return $this->title;
82
    }
83
84
    public function priority()
85
    {
86
        return $this->priority;
87
    }
88
89
    public function progress()
90
    {
91
        return $this->progress;
92
    }
93
94
    public function assigneeId()
95
    {
96
        return $this->assigneeId;
97
    }
98
99
    public function creatorId()
100
    {
101
        return $this->creatorId;
102
    }
103
}
104