1 | <?php |
||
5 | class PartnerClient extends BaseClient |
||
6 | { |
||
7 | /** |
||
8 | * Partner Create Order on External Shop |
||
9 | * |
||
10 | * @param string $ventureCode |
||
11 | * @param array $orderData |
||
12 | * @return bool |
||
13 | */ |
||
14 | 2 | public function createOrderOnVenture($ventureCode, $orderData) |
|
31 | |||
32 | |||
33 | /** |
||
34 | * Partner Confirm Paid Order on External Shop |
||
35 | * |
||
36 | * @param string $ventureCode |
||
37 | * @param int $orderNr |
||
38 | * @return bool |
||
39 | 2 | */ |
|
40 | public function confirmPaymentOnVenture($ventureCode, $orderNr) |
||
41 | { |
||
42 | 2 | try { |
|
43 | 2 | $this->doRequest( |
|
44 | 2 | 'put', |
|
45 | 2 | $this->buildRequestUrl(sprintf('/fulfillment/order/confirm/%s', $orderNr), $ventureCode) |
|
46 | 2 | ); |
|
47 | 1 | } catch (\Exception $e) { |
|
48 | 1 | $this->throwException( |
|
49 | 1 | $e, |
|
50 | 1 | 'Unable to confirm payment for venture on Externalshop', |
|
51 | 1 | ['VentureCode' => $ventureCode, 'OrderNr' => $orderNr] |
|
52 | ); |
||
53 | 2 | } |
|
54 | return true; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Partner Cancel Order on External Shop |
||
59 | * |
||
60 | * @param string $ventureCode |
||
61 | * @param int $orderNr |
||
62 | * @return bool |
||
63 | 2 | */ |
|
64 | public function cancelOrderOnVenture($ventureCode, $orderNr) |
||
80 | |||
81 | //products |
||
82 | /** |
||
83 | * Sends product creation status to venture |
||
84 | * |
||
85 | * @param array $productsData |
||
86 | * @param string $venture |
||
|
|||
87 | * @return void |
||
88 | */ |
||
89 | public function sendProductCreationConfirmationToVenture( |
||
109 | } |
||
110 |
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.