UnitListItem   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 25
wmc 1
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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\ListUnit;
9
10
/**
11
 * Class UnitListItem
12
 *
13
 * @package Domain\Unit\UseCase\ListUnit
14
 */
15
class UnitListItem
16
{
17
    /** @var integer */
18
    public $id;
19
20
    /** @var string */
21
    public $name;
22
23
    /** @var string */
24
    public $shortcut;
25
26
    /**
27
     * UnitListItem constructor.
28
     *
29
     * @param integer $id
30
     * @param string $name
31
     * @param string $shortcut
32
     */
33
    public function __construct($id, $name, $shortcut)
34
    {
35
        $this->id = $id;
36
        $this->name = $name;
37
        $this->shortcut = $shortcut;
38
    }
39
}
40