1 | <?php |
||
5 | class Partner extends Base |
||
6 | { |
||
7 | private $mappingClasses; |
||
8 | |||
9 | /** |
||
10 | * Gets an specific mapping classs |
||
11 | * |
||
12 | * @param string $mappingName |
||
13 | */ |
||
14 | 6 | public function getMapping($mappingName) |
|
23 | |||
24 | /** |
||
25 | * Set an specific mapping classs |
||
26 | * |
||
27 | * @param string $mappingName |
||
28 | * @param $mappingClass |
||
29 | * @return \Iris\SaleWrapper\Partner |
||
30 | */ |
||
31 | 3 | public function setMapping($mappingName, $mappingClass) |
|
36 | |||
37 | /** |
||
38 | * Gets Stock service. |
||
39 | * @return \Iris\Interfaces\Stock |
||
40 | */ |
||
41 | 2 | public function getStockService() |
|
45 | |||
46 | /** |
||
47 | * Gets Stock service. |
||
48 | * @return \Iris\Interfaces\Catalog |
||
49 | */ |
||
50 | 2 | public function getCatalogService() |
|
54 | |||
55 | //order |
||
56 | /** |
||
57 | * Send order to venture |
||
58 | * |
||
59 | * @param \Iris\Transfer\Sales\Order $order, |
||
|
|||
60 | * @param string $ventureCode |
||
61 | * @return bool |
||
62 | * @throws \Iris\Exceptions\OrderNotFound |
||
63 | * @throws \Iris\Exceptions\RetryMessage |
||
64 | */ |
||
65 | 1 | public function createOrderOnVenture( |
|
72 | |||
73 | /** |
||
74 | * As a Partner I expect to receive a reserve confirmation and quantity of stock for SalesOrderItem to remove its |
||
75 | * reserve. |
||
76 | * |
||
77 | * @param integer $orderNr Partner order number |
||
78 | * @return void |
||
79 | * @throws \Iris\Exceptions\UnableToDropReserve |
||
80 | */ |
||
81 | 1 | public function dropReserve($orderNr) |
|
85 | |||
86 | /** |
||
87 | * Send a confirmation that the order is paid to the venture |
||
88 | * |
||
89 | * @param Iris\Transfer\Sales\Order $order |
||
90 | * @param Iris\Transfer\Venture $venture |
||
91 | * @return bool |
||
92 | * @throws \Iris\Exceptions\OrderNotFound |
||
93 | * @throws \Iris\Exceptions\RetryMessage |
||
94 | */ |
||
95 | 1 | public function confirmOrderPaidOnVenture( |
|
105 | |||
106 | /** |
||
107 | * Sends a order cancel request to venture |
||
108 | * |
||
109 | * @param Iris\Transfer\Sales\Order $order |
||
110 | * @param Iris\Transfer\Venture $venture |
||
111 | * @return bool |
||
112 | * @throws \Iris\Exceptions\OrderNotFound |
||
113 | * @throws \Iris\Exceptions\RetryMessage |
||
114 | */ |
||
115 | 1 | public function cancelOrderOnVenture( |
|
125 | |||
126 | /** |
||
127 | * As a Partner I want to receive a Venture Order Number to bind it with my Order Number. |
||
128 | * |
||
129 | * @param string $orderNr Order number. |
||
130 | * @param string $ventureCode Venture code |
||
131 | * @param string $ventureOrderNr Venture Order Number |
||
132 | * @return void |
||
133 | */ |
||
134 | public function bindVentureOrder($orderNr, $ventureCode, $ventureOrderNr) |
||
143 | |||
144 | //post payment |
||
145 | /** |
||
146 | * As a Partner I expect to receive a shipped notification from Venture. |
||
147 | * |
||
148 | * @param array $postPaymentData |
||
149 | * @param string $ventureCode |
||
150 | * @return array Returns an array as: |
||
151 | * |
||
152 | * [ |
||
153 | * 'order_data' = [ |
||
154 | * 'order_number' => '00000057', |
||
155 | * 'items' => [ |
||
156 | * [53 => [ |
||
157 | * 'status' => true |
||
158 | * ]], |
||
159 | * [54 => [ |
||
160 | * 'status' => false, |
||
161 | * 'message' => 'Some error' |
||
162 | * ] |
||
163 | * ] |
||
164 | * ] |
||
165 | * ] |
||
166 | */ |
||
167 | 1 | public function setOrderStatusToShippedFromVenture( |
|
183 | |||
184 | /** |
||
185 | * @param array $postPaymentData |
||
186 | * @param string $ventureCode |
||
187 | * @return array |
||
188 | */ |
||
189 | 1 | public function cancelOrderFromVenture( |
|
199 | |||
200 | /** |
||
201 | * As a Partner I expect to receive a delivered notification from Venture. |
||
202 | * |
||
203 | * @param array $postPaymentData |
||
204 | * @param string $ventureCode |
||
205 | * @return array Returns an array as: |
||
206 | * |
||
207 | * [ |
||
208 | * 'order_data' = [ |
||
209 | * 'order_number' => '00000057', |
||
210 | * 'items' => [ |
||
211 | * [53 => [ |
||
212 | * 'status' => true |
||
213 | * ]], |
||
214 | * [54 => [ |
||
215 | * 'status' => false, |
||
216 | * 'message' => 'Some error' |
||
217 | * ] |
||
218 | * ] |
||
219 | * ] |
||
220 | * ] |
||
221 | */ |
||
222 | 1 | public function setOrderStatusToDeliveredFromVenture( |
|
232 | |||
233 | /** |
||
234 | * As a Partner I expect to receive a delivery failed notification from Venture. |
||
235 | * @param array $orderData |
||
236 | * @param string $ventureCode |
||
237 | * @return array Returns an array as: |
||
238 | * |
||
239 | * [ |
||
240 | * 'order_data' = [ |
||
241 | * 'order_number' => '00000057', |
||
242 | * 'items' => [ |
||
243 | * [53 => [ |
||
244 | * 'status' => true |
||
245 | * ]], |
||
246 | * [54 => [ |
||
247 | * 'status' => false, |
||
248 | * 'message' => 'Some error' |
||
249 | * ] |
||
250 | * ] |
||
251 | * ] |
||
252 | * ] |
||
253 | */ |
||
254 | 1 | public function setOrderStatusToDeliveryFailedFromVenture( |
|
264 | |||
265 | //products |
||
266 | /** |
||
267 | * Create products from venture |
||
268 | * |
||
269 | * @param array $productsData |
||
270 | * @param string $ventureCode |
||
271 | * @return Iris\Transfer\Catalog\ConfigCollection |
||
272 | */ |
||
273 | public function createProductsFromVenture(array $productsData, $ventureCode) |
||
280 | |||
281 | /** |
||
282 | * Send product creation status to venture |
||
283 | * |
||
284 | * @param \Iris\Transfer\Catalog\ConfigCollection $configCollection |
||
285 | * @param \Iris\Transfer\Venture $venture |
||
286 | * @return void |
||
287 | */ |
||
288 | public function sendProductCreationConfirmationToVenture( |
||
301 | |||
302 | /** |
||
303 | * Update products information from venture |
||
304 | * |
||
305 | * @param array $productsData |
||
306 | * @param string $ventureCode |
||
307 | * @return void |
||
308 | */ |
||
309 | public function updateProductsFromVenture(array $productsData, $ventureCode) |
||
319 | |||
320 | /** |
||
321 | * Update price in batch based on the config collection information sent by the venture |
||
322 | * |
||
323 | * @param array $productsData |
||
324 | * @param string $ventureCode |
||
325 | * @return void |
||
326 | */ |
||
327 | 1 | public function updatePriceFromVenture(array $productsData, $ventureCode) |
|
337 | |||
338 | /** |
||
339 | * Update the stock of a product from the venture |
||
340 | * |
||
341 | * @param array $productsData |
||
342 | * @param string $ventureCode |
||
343 | * @return bool |
||
344 | */ |
||
345 | 1 | public function updateStockFromVenture(array $productsData, $ventureCode) |
|
352 | |||
353 | /** |
||
354 | * Update product images from venture |
||
355 | * |
||
356 | * @param array $productsData |
||
357 | * @param string $ventureCode |
||
358 | * @return void |
||
359 | */ |
||
360 | public function updateProductImagesFromVenture(array $productsData, $ventureCode) |
||
369 | } |
||
370 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.