Completed
Pull Request — master (#168)
by Beñat
11:53 queued 06:57
created

ChangeTaskProgressCommand   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A id() 0 4 1
A progress() 0 4 1
A editorId() 0 4 1
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 ChangeTaskProgressCommand
18
{
19
    private $id;
20
    private $progress;
21
    private $editorId;
22
23
    public function __construct(string $id, string $progress, string $editorId)
24
    {
25
        $this->id = $id;
26
        $this->progress = $progress;
27
        $this->editorId = $editorId;
28
    }
29
30
    public function id() : string
31
    {
32
        return $this->id;
33
    }
34
35
    public function progress() : string
36
    {
37
        return $this->progress;
38
    }
39
40
    public function editorId() : string
41
    {
42
        return $this->editorId;
43
    }
44
}
45