1 | <?php |
||
18 | class Gateway extends AbstractGateway |
||
19 | { |
||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public function getName() |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function getDefaultParameters() |
||
39 | |||
40 | /** |
||
41 | * Get the unified purse. |
||
42 | * |
||
43 | * @return string merchant purse |
||
44 | */ |
||
45 | public function getPurse() |
||
49 | |||
50 | /** |
||
51 | * Set the unified purse. |
||
52 | * |
||
53 | * @param string $purse merchant purse |
||
|
|||
54 | * |
||
55 | * @return self |
||
56 | */ |
||
57 | public function setPurse($value) |
||
61 | |||
62 | /** |
||
63 | * Get the unified secret key. |
||
64 | * |
||
65 | * @return string secret key |
||
66 | */ |
||
67 | public function getSecretKey() |
||
71 | |||
72 | /** |
||
73 | * Set the unified secret key. |
||
74 | * |
||
75 | * @param string $value secret key |
||
76 | * |
||
77 | * @return self |
||
78 | */ |
||
79 | public function setSecretKey($value) |
||
83 | |||
84 | /** |
||
85 | * @param array $parameters |
||
86 | * |
||
87 | * @return \Omnipay\ePayService\Message\PurchaseRequest |
||
88 | */ |
||
89 | public function purchase(array $parameters = []) |
||
93 | |||
94 | /** |
||
95 | * @param array $parameters |
||
96 | * |
||
97 | * @return \Omnipay\ePayService\Message\CompletePurchaseRequest |
||
98 | */ |
||
99 | public function completePurchase(array $parameters = []) |
||
103 | } |
||
104 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.