PluginProbe
PayPlug for WooCommerce (Official) / 3.1.0
PayPlug for WooCommerce (Official) v3.1.0
3.1.0 3.0.0 2.18.0 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.10.0 1.10.1 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 All 102 releases
← All changes | vendor/payplug/payplug-php/lib/Payplug/Resource/Payment.php +9 -9 1.10.0 → 3.1.0 View file →
@@ -70,9 +70,9 @@
70 70 * @return Refund|null the opened refund instance
71 71 *
72 72 * @throws Payplug\Exception\InvalidPaymentException when the id of the payment is invalid
73 73 */
74 - public function refund(array $data = null, Payplug\Payplug $payplug = null)
74 + public function refund($data = null, $payplug = null)
75 75 {
76 76 if (!array_key_exists('id', $this->getAttributes())) {
77 77 throw new Payplug\Exception\InvalidPaymentException("This payment object has no id. It can't be refunded.");
78 78 }
@@ -89,9 +89,9 @@
89 89 *
90 90 * @throws Payplug\Exception\InvalidPaymentException
91 91 * @throws Payplug\Exception\UnexpectedAPIResponseException
92 92 */
93 - public function listRefunds(Payplug\Payplug $payplug = null)
93 + public function listRefunds($payplug = null)
94 94 {
95 95 if (!array_key_exists('id', $this->getAttributes())) {
96 96 throw new Payplug\Exception\InvalidPaymentException("This payment object has no id. You can't list refunds on it.");
97 97 }
@@ -107,9 +107,9 @@
107 107 * @return null|Payment the aborted payment or null on error
108 108 *
109 109 * @throws Payplug\Exception\ConfigurationNotSetException
110 110 */
111 - public function abort(Payplug\Payplug $payplug = null)
111 + public function abort($payplug = null)
112 112 {
113 113 if ($payplug === null) {
114 114 $payplug = Payplug\Payplug::getDefaultConfiguration();
115 115 }
@@ -131,9 +131,9 @@
131 131 * @return null|Payment the captured payment or null on error
132 132 *
133 133 * @throws Payplug\Exception\ConfigurationNotSetException
134 134 */
135 - public function capture(Payplug\Payplug $payplug = null)
135 + public function capture($payplug = null)
136 136 {
137 137 if ($payplug === null) {
138 138 $payplug = Payplug\Payplug::getDefaultConfiguration();
139 139 }
@@ -158,9 +158,9 @@
158 158 * @throws Payplug\Exception\ConfigurationNotSetException
159 159 * @throws Payplug\Exception\UndefinedAttributeException
160 160 * @throws Payplug\Exception\NotFoundException
161 161 */
162 - public static function retrieve($paymentId, Payplug\Payplug $payplug = null)
162 + public static function retrieve($paymentId, $payplug = null)
163 163 {
164 164 if ($payplug === null) {
165 165 $payplug = Payplug\Payplug::getDefaultConfiguration();
166 166 }
@@ -188,9 +188,9 @@
188 188 *
189 189 * @throws Payplug\Exception\InvalidPaymentException
190 190 * @throws Payplug\Exception\UnexpectedAPIResponseException
191 191 */
192 - public static function listPayments($perPage = null, $page = null, Payplug\Payplug $payplug = null)
192 + public static function listPayments($perPage = null, $page = null, $payplug = null)
193 193 {
194 194 if ($payplug === null) {
195 195 $payplug = Payplug\Payplug::getDefaultConfiguration();
196 196 }
@@ -226,9 +226,9 @@
226 226 * @return null|Payment the created payment instance
227 227 *
228 228 * @throws Payplug\Exception\ConfigurationNotSetException
229 229 */
230 - public static function create(array $data, Payplug\Payplug $payplug = null)
230 + public static function create(array $data, $payplug = null)
231 231 {
232 232 if ($payplug === null) {
233 233 $payplug = Payplug\Payplug::getDefaultConfiguration();
234 234 }
@@ -251,9 +251,9 @@
251 251 * @return null|Payment the updated payment instance
252 252 *
253 253 * @throws Payplug\Exception\ConfigurationNotSetException
254 254 */
255 - public function update(array $data, Payplug\Payplug $payplug = null)
255 + public function update(array $data, $payplug = null)
256 256 {
257 257 if ($payplug === null) {
258 258 $payplug = Payplug\Payplug::getDefaultConfiguration();
259 259 }
@@ -275,9 +275,9 @@
275 275 * @return Payplug\Resource\APIResource The consistent API resource.
276 276 *
277 277 * @throws Payplug\Exception\UndefinedAttributeException when the local resource is invalid.
278 278 */
279 - function getConsistentResource(Payplug\Payplug $payplug = null)
279 + function getConsistentResource($payplug = null)
280 280 {
281 281 if (!array_key_exists('id', $this->_attributes)) {
282 282 throw new Payplug\Exception\UndefinedAttributeException('The id of the payment is not set.');
283 283 }