ListMaterialItem::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 6
nc 1
nop 5
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
}