EditUnitRequest::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
/**
3
 * (c) Tomasz Kunicki <[email protected]>
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
namespace Domain\Unit\UseCase\EditUnit;
9
10
/**
11
 * Class EditUnitRequest
12
 *
13
 * @package Domain\Unit\UseCase\EditUnit
14
 */
15
class EditUnitRequest
16
{
17
    /** @var  integer */
18
    private $unitId;
19
20
    /** @var  string */
21
    private $name;
22
23
    /** @var  string */
24
    private $shortcut;
25
26
    /**
27
     * EditUnitRequest constructor.
28
     *
29
     * @param int $unitId
30
     * @param string $name
31
     * @param string $shortcut
32
     */
33
    public function __construct($unitId, $name, $shortcut)
34
    {
35
        $this->unitId = $unitId;
36
        $this->name = $name;
37
        $this->shortcut = $shortcut;
38
    }
39
40
    /**
41
     * @return int
42
     */
43
    public function getUnitId()
44
    {
45
        return $this->unitId;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getName()
52
    {
53
        return $this->name;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getShortcut()
60
    {
61
        return $this->shortcut;
62
    }
63
}
64