1 | <?php |
||
5 | class Partner extends Base implements PartnerInterface |
||
6 | { |
||
7 | private $mappingClasses; |
||
8 | |||
9 | /** |
||
10 | * {@inheritdoc} |
||
11 | */ |
||
12 | public function getName() |
||
16 | 4 | ||
17 | /** |
||
18 | * Gets Venture service. |
||
19 | * @return \Iris\Interfaces\IrisVenture |
||
20 | */ |
||
21 | public function getVentureService() |
||
25 | 3 | ||
26 | /** |
||
27 | * Gets Stock service. |
||
28 | * @return \Iris\Interfaces\Stock |
||
29 | */ |
||
30 | public function getStockService() |
||
34 | 2 | ||
35 | /** |
||
36 | * Gets Stock service. |
||
37 | * @return \Iris\Interfaces\Catalog |
||
38 | */ |
||
39 | public function getCatalogService() |
||
43 | 2 | ||
44 | 2 | ||
45 | //order |
||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | 1 | public function isVentureItem(\Iris\Transfer\Sales\Order\Item $item) |
|
56 | 1 | ||
57 | /** |
||
58 | 1 | * {@inheritdoc} |
|
59 | */ |
||
60 | 1 | public function sendOrderToVenture( |
|
67 | |||
68 | 1 | /** |
|
69 | 1 | * {@inheritdoc} |
|
70 | */ |
||
71 | public function dropReserveAndUpdateStock( |
||
82 | |||
83 | /** |
||
84 | 4 | * {@inheritdoc} |
|
85 | */ |
||
86 | 4 | public function confirmOrderPaidOnVenture( |
|
96 | 1 | ||
97 | 1 | /** |
|
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | public function confirmOrderFromVenture(array $orderData, $ventureCode) |
||
105 | 1 | ||
106 | 1 | /** |
|
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | public function cancelOrderOnVenture( |
||
119 | |||
120 | /** |
||
121 | 1 | * {@inheritdoc} |
|
122 | */ |
||
123 | 1 | public function bindVentureOrder($orderNr, $ventureCode, $ventureorderNr) |
|
132 | |||
133 | /** |
||
134 | * Gets an specific mapping classs |
||
135 | 2 | * |
|
136 | * @param string $mappingName |
||
137 | 2 | */ |
|
138 | public function getMapping($mappingName) |
||
147 | |||
148 | /** |
||
149 | * Set an specific mapping classs |
||
150 | * |
||
151 | * @param string $mappingName |
||
152 | * @param $mappingClass |
||
153 | * @return \Iris\SaleWrapper\Partner |
||
154 | */ |
||
155 | public function setMapping($mappingName, $mappingClass) |
||
160 | |||
161 | //post payment |
||
162 | /** |
||
163 | * {@inheritdoc} |
||
164 | */ |
||
165 | public function setOrderStatusToShippedFromVenture( |
||
180 | |||
181 | /** |
||
182 | * {@inheritdoc} |
||
183 | */ |
||
184 | public function cancelOrderFromVenture( |
||
194 | |||
195 | /** |
||
196 | * {@inheritdoc} |
||
197 | */ |
||
198 | public function setOrderStatusToDeliveredFromVenture( |
||
208 | |||
209 | /** |
||
210 | * {@inheritdoc} |
||
211 | */ |
||
212 | public function setOrderStatusToDeliveryFailedFromVenture( |
||
222 | |||
223 | //products |
||
224 | /** |
||
225 | * {@inheritdoc} |
||
226 | */ |
||
227 | public function updatePriceFromVenture(array $productsData, $ventureCode) |
||
237 | |||
238 | /** |
||
239 | * {@inheritdoc} |
||
240 | */ |
||
241 | public function updateStockFromVenture(array $productsData, $ventureCode) |
||
248 | |||
249 | /** |
||
250 | * {@inheritdoc} |
||
251 | */ |
||
252 | public function createProductsFromVenture(array $productsData, $ventureCode) |
||
259 | |||
260 | /** |
||
261 | * {@inheritdoc} |
||
262 | */ |
||
263 | public function sendProductCreationConfirmationToVenture( |
||
276 | |||
277 | /** |
||
278 | * {@inheritdoc} |
||
279 | */ |
||
280 | public function updateProductsFromVenture(array $productsData, $ventureCode) |
||
287 | |||
288 | /** |
||
289 | * {@inheritdoc} |
||
290 | */ |
||
291 | public function updateProductImagesFromVenture(array $productsData, $ventureCode) |
||
300 | |||
301 | /** |
||
302 | * {@inheritdoc} |
||
303 | */ |
||
304 | public function isInvalidOrder(\Iris\Transfer\Sales\Order $order) |
||
308 | } |
||
309 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: