1 | <?php |
||
18 | class EditMaterialRequest |
||
19 | { |
||
20 | /** @var int */ |
||
21 | private $materialId; |
||
22 | |||
23 | /** @var string */ |
||
24 | private $newName; |
||
25 | |||
26 | /** @var string */ |
||
27 | private $newCode; |
||
28 | |||
29 | /** @var CategoryInterface */ |
||
30 | private $category; |
||
31 | |||
32 | /** @var UnitInterface */ |
||
33 | private $unit; |
||
34 | |||
35 | /** |
||
36 | * EditMaterialRequest constructor. |
||
37 | * |
||
38 | * @param int $materialId |
||
39 | * @param string $newName |
||
40 | * @param string $newCode |
||
41 | * @param CategoryInterface $category |
||
42 | * @param UnitInterface $unit |
||
43 | */ |
||
44 | public function __construct( |
||
57 | |||
58 | /** |
||
59 | * @return int |
||
60 | */ |
||
61 | public function getMaterialId() |
||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getNewName() |
||
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | public function getNewCode() |
||
81 | |||
82 | /** |
||
83 | * @return CategoryInterface |
||
84 | */ |
||
85 | public function getCategory() |
||
89 | |||
90 | /** |
||
91 | * @return UnitInterface|null |
||
92 | */ |
||
93 | public function getUnit() |
||
97 | } |