1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Starweb\Api\Generated\Model; |
4
|
|
|
|
5
|
|
|
class ProductUnitModelUpdatable |
6
|
|
|
{ |
7
|
|
|
/** |
8
|
|
|
* The units id |
9
|
|
|
* |
10
|
|
|
* @var int|null |
11
|
|
|
*/ |
12
|
|
|
protected $unitId; |
13
|
|
|
/** |
14
|
|
|
* The external id of this pricelist |
15
|
|
|
* |
16
|
|
|
* @var string|null |
17
|
|
|
*/ |
18
|
|
|
protected $externalId = ''; |
19
|
|
|
/** |
20
|
|
|
* The system name the externalId belongs to. |
21
|
|
|
* |
22
|
|
|
* @var string|null |
23
|
|
|
*/ |
24
|
|
|
protected $externalIdType; |
25
|
|
|
/** |
26
|
|
|
* |
27
|
|
|
* |
28
|
|
|
* @var ProductUnitLanguageModel[]|null |
29
|
|
|
*/ |
30
|
|
|
protected $languages; |
31
|
|
|
/** |
32
|
|
|
* The units id |
33
|
|
|
* |
34
|
|
|
* @return int|null |
35
|
|
|
*/ |
36
|
|
|
public function getUnitId() : ?int |
37
|
|
|
{ |
38
|
|
|
return $this->unitId; |
39
|
|
|
} |
40
|
|
|
/** |
41
|
|
|
* The units id |
42
|
|
|
* |
43
|
|
|
* @param int|null $unitId |
44
|
|
|
* |
45
|
|
|
* @return self |
46
|
|
|
*/ |
47
|
|
|
public function setUnitId(?int $unitId) : self |
48
|
|
|
{ |
49
|
|
|
$this->unitId = $unitId; |
50
|
|
|
return $this; |
51
|
|
|
} |
52
|
|
|
/** |
53
|
|
|
* The external id of this pricelist |
54
|
|
|
* |
55
|
|
|
* @return string|null |
56
|
|
|
*/ |
57
|
|
|
public function getExternalId() : ?string |
58
|
|
|
{ |
59
|
|
|
return $this->externalId; |
60
|
|
|
} |
61
|
|
|
/** |
62
|
|
|
* The external id of this pricelist |
63
|
|
|
* |
64
|
|
|
* @param string|null $externalId |
65
|
|
|
* |
66
|
|
|
* @return self |
67
|
|
|
*/ |
68
|
|
|
public function setExternalId(?string $externalId) : self |
69
|
|
|
{ |
70
|
|
|
$this->externalId = $externalId; |
71
|
|
|
return $this; |
72
|
|
|
} |
73
|
|
|
/** |
74
|
|
|
* The system name the externalId belongs to. |
75
|
|
|
* |
76
|
|
|
* @return string|null |
77
|
|
|
*/ |
78
|
|
|
public function getExternalIdType() : ?string |
79
|
|
|
{ |
80
|
|
|
return $this->externalIdType; |
81
|
|
|
} |
82
|
|
|
/** |
83
|
|
|
* The system name the externalId belongs to. |
84
|
|
|
* |
85
|
|
|
* @param string|null $externalIdType |
86
|
|
|
* |
87
|
|
|
* @return self |
88
|
|
|
*/ |
89
|
|
|
public function setExternalIdType(?string $externalIdType) : self |
90
|
|
|
{ |
91
|
|
|
$this->externalIdType = $externalIdType; |
92
|
|
|
return $this; |
93
|
|
|
} |
94
|
|
|
/** |
95
|
|
|
* |
96
|
|
|
* |
97
|
|
|
* @return ProductUnitLanguageModel[]|null |
98
|
|
|
*/ |
99
|
|
|
public function getLanguages() : ?array |
100
|
|
|
{ |
101
|
|
|
return $this->languages; |
102
|
|
|
} |
103
|
|
|
/** |
104
|
|
|
* |
105
|
|
|
* |
106
|
|
|
* @param ProductUnitLanguageModel[]|null $languages |
107
|
|
|
* |
108
|
|
|
* @return self |
109
|
|
|
*/ |
110
|
|
|
public function setLanguages(?array $languages) : self |
111
|
|
|
{ |
112
|
|
|
$this->languages = $languages; |
113
|
|
|
return $this; |
114
|
|
|
} |
115
|
|
|
} |