Completed
Push — master ( f571ad...af881e )
by Gorka
10s
created

FilterTasksQuery::projectId()   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
28
    public function __construct(
29
        string $userId,
30
        int $offset,
31
        int $limit,
32
        string $parentId = null,
33
        string $projectId = null,
34
        string $title = null,
35
        string $priority = null,
36
        string $progress = null
37
    ) {
38
        $this->title = $title;
39
        $this->projectId = $projectId;
40
        $this->offset = $offset;
41
        $this->limit = $limit;
42
        $this->userId = $userId;
43
        $this->parentId = $parentId;
44
        $this->priority = $priority;
45
        $this->progress = $progress;
46
    }
47
48
    public function userId() : string
49
    {
50
        return $this->userId;
51
    }
52
53
    public function offset() : int
54
    {
55
        return $this->offset;
56
    }
57
58
    public function limit() : int
59
    {
60
        return $this->limit;
61
    }
62
63
    public function parentId()
64
    {
65
        return $this->parentId;
66
    }
67
68
    public function projectId()
69
    {
70
        return $this->projectId;
71
    }
72
73
    public function title() : ? string
74
    {
75
        return $this->title;
76
    }
77
78
    public function priority()
79
    {
80
        return $this->priority;
81
    }
82
83
    public function progress()
84
    {
85
        return $this->progress;
86
    }
87
}
88