Completed
Push — master ( ed41b4...63431b )
by Beñat
14s
created

ChangeTaskPriorityCommand::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 3
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\Project\Task;
16
17
class ChangeTaskPriorityCommand
18
{
19
    private $id;
20
    private $priority;
21
    private $editorId;
22
23
    public function __construct(
24
        string $id,
25
        string $priority,
26
        string $editorId
27
    ) {
28
        $this->id = $id;
29
        $this->priority = $priority;
30
        $this->editorId = $editorId;
31
    }
32
33
    public function id() : string
34
    {
35
        return $this->id;
36
    }
37
38
    public function priority() : string
39
    {
40
        return $this->priority;
41
    }
42
43
    public function editorId() : string
44
    {
45
        return $this->editorId;
46
    }
47
}
48