10
10
namespace API2Client \Entities \Order \Additional ;
11
11
12
12
13
- class ProductOffer implements AdditionalInfoInterface
13
+ class ProductOffer extends ProductAdditionalInfo
14
14
{
15
15
/**
16
16
* @var int
@@ -45,111 +45,114 @@ class ProductOffer implements AdditionalInfoInterface
45
45
/**
46
46
* @param int $channelId
47
47
*/
48
- public function setChannelId ($ channelId )
48
+ public function setChannelId ($ channelId )
49
49
{
50
50
$ this ->channelId = $ channelId ;
51
51
}
52
52
53
53
/**
54
54
* @return int
55
55
*/
56
- public function getChannelId ()
56
+ public function getChannelId ()
57
57
{
58
58
return $ this ->channelId ;
59
59
}
60
60
61
61
/**
62
62
* @param int $offerPercentDiscount
63
63
*/
64
- public function setOfferPercentDiscount ($ offerPercentDiscount )
64
+ public function setOfferPercentDiscount ($ offerPercentDiscount )
65
65
{
66
66
$ this ->offerPercentDiscount = $ offerPercentDiscount ;
67
67
}
68
68
69
69
/**
70
70
* @return int
71
71
*/
72
- public function getOfferPercentDiscount ()
72
+ public function getOfferPercentDiscount ()
73
73
{
74
74
return $ this ->offerPercentDiscount ;
75
75
}
76
76
77
77
/**
78
78
* @param int $position
79
79
*/
80
- public function setPosition ($ position )
80
+ public function setPosition ($ position )
81
81
{
82
82
$ this ->position = $ position ;
83
83
}
84
84
85
85
/**
86
86
* @return int
87
87
*/
88
- public function getPosition ()
88
+ public function getPosition ()
89
89
{
90
90
return $ this ->position ;
91
91
}
92
92
93
93
/**
94
94
* @param int $presentationId
95
95
*/
96
- public function setPresentationId ($ presentationId )
96
+ public function setPresentationId ($ presentationId )
97
97
{
98
98
$ this ->presentationId = $ presentationId ;
99
99
}
100
100
101
101
/**
102
102
* @return int
103
103
*/
104
- public function getPresentationId ()
104
+ public function getPresentationId ()
105
105
{
106
106
return $ this ->presentationId ;
107
107
}
108
108
109
109
/**
110
110
* @param int $searchContextId
111
111
*/
112
- public function setSearchContextId ($ searchContextId )
112
+ public function setSearchContextId ($ searchContextId )
113
113
{
114
114
$ this ->searchContextId = $ searchContextId ;
115
115
}
116
116
117
117
/**
118
118
* @return int
119
119
*/
120
- public function getSearchContextId ()
120
+ public function getSearchContextId ()
121
121
{
122
122
return $ this ->searchContextId ;
123
123
}
124
124
125
125
/**
126
126
* @param int $templateId
127
127
*/
128
- public function setTemplateId ($ templateId )
128
+ public function setTemplateId ($ templateId )
129
129
{
130
130
$ this ->templateId = $ templateId ;
131
131
}
132
132
133
133
/**
134
134
* @return int
135
135
*/
136
- public function getTemplateId ()
136
+ public function getTemplateId ()
137
137
{
138
138
return $ this ->templateId ;
139
139
}
140
140
141
141
/**
142
142
* @return array
143
143
*/
144
- public function toArray ()
144
+ public function toArray ()
145
145
{
146
- return array (
147
- 'channelId ' => $ this ->getChannelId (),
148
- 'offerPercentDiscount ' => $ this ->getOfferPercentDiscount (),
149
- 'position ' => $ this ->getPosition (),
150
- 'presentationId ' => $ this ->getPresentationId (),
151
- 'searchContextId ' => $ this ->getSearchContextId (),
152
- 'templateId ' => $ this ->getTemplateId (),
146
+ return array_merge (
147
+ parent ::toArray (),
148
+ array (
149
+ 'channelId ' => $ this ->getChannelId (),
150
+ 'offerPercentDiscount ' => $ this ->getOfferPercentDiscount (),
151
+ 'position ' => $ this ->getPosition (),
152
+ 'presentationId ' => $ this ->getPresentationId (),
153
+ 'searchContextId ' => $ this ->getSearchContextId (),
154
+ 'templateId ' => $ this ->getTemplateId (),
155
+ )
153
156
);
154
157
}
155
- }
158
+ }
0 commit comments