ListMaterialItem   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 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\Material\UseCase\ListMaterial;
9
10
/**
11
 * Class ListMaterialItem
12
 *
13
 * @package Domain\Material\UseCase\ListMaterial
14
 */
15
class ListMaterialItem
16
{
17
    /** @var  int */
18
    public $id;
19
20
    /** @var  string */
21
    public $name;
22
23
    /** @var  string */
24
    public $code;
25
26
    /** @var  string */
27
    public $unitName;
28
29
    /** @var  string */
30
    public $categoryName;
31
32
    /**
33
     * ListMaterialItem constructor.
34
     *
35
     * @param int $id
36
     * @param string $name
37
     * @param string $code
38
     * @param string $unitName
39
     * @param string $categoryName
40
     */
41
    public function __construct($id, $name, $code, $unitName, $categoryName)
42
    {
43
        $this->id = $id;
44
        $this->name = $name;
45
        $this->code = $code;
46
        $this->unitName = $unitName;
47
        $this->categoryName = $categoryName;
48
    }
49
}