1 | <?php |
||
14 | class ServerCompletePurchaseResponse extends AbstractResponse |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Is the response successful? |
||
19 | * |
||
20 | * @return boolean |
||
21 | */ |
||
22 | 5 | public function isSuccessful() |
|
26 | |||
27 | /** |
||
28 | * Response code |
||
29 | * |
||
30 | * @return null|string A response code from the payment gateway |
||
31 | */ |
||
32 | 5 | public function getCode() |
|
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | 2 | public function getAction() |
|
44 | |||
45 | /** |
||
46 | * @return Notify |
||
47 | */ |
||
48 | 2 | public function getRequestNotify() |
|
52 | |||
53 | /** |
||
54 | * @return Request\Card |
||
55 | */ |
||
56 | 2 | public function getRequestData() |
|
60 | |||
61 | /** |
||
62 | * Is the transaction cancelled by the user? |
||
63 | * |
||
64 | * @return boolean |
||
65 | */ |
||
66 | 4 | public function isPending() |
|
74 | |||
75 | /** |
||
76 | * Is the transaction cancelled by the user? |
||
77 | * |
||
78 | * @return boolean |
||
79 | */ |
||
80 | 4 | public function isCancelled() |
|
88 | |||
89 | public function send() |
||
94 | |||
95 | /** |
||
96 | * @return string |
||
97 | */ |
||
98 | 4 | public function getContent() |
|
112 | |||
113 | /** |
||
114 | * Response code |
||
115 | * |
||
116 | * @return null|string A response code from the payment gateway |
||
117 | */ |
||
118 | 4 | public function getCodeType() |
|
122 | |||
123 | /** |
||
124 | * Response Message |
||
125 | * |
||
126 | * @return null|string A response message from the payment gateway |
||
127 | */ |
||
128 | 3 | public function getMessage() |
|
132 | |||
133 | /** |
||
134 | * @return false|string |
||
135 | */ |
||
136 | public function getTransactionDate() |
||
143 | |||
144 | /** @noinspection PhpMissingParentCallCommonInspection |
||
145 | * Gateway Reference |
||
146 | * |
||
147 | * @return null|string A reference provided by the gateway to represent this transaction |
||
148 | */ |
||
149 | public function getTransactionReference() |
||
153 | |||
154 | /** @noinspection PhpMissingParentCallCommonInspection |
||
155 | * @return bool |
||
156 | */ |
||
157 | protected function canProcessModel() |
||
161 | } |
||
162 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.