← All changes
|
vendor/payplug/payplug-php/lib/Payplug/Resource/Refund.php
+4
-4
1.0.21
→
3.1.0
View file →
| @@ -30,9 +30,9 @@ | ||
| 30 | 30 | * |
| 31 | 31 | * @return null|Refund the refund object |
| 32 | 32 | * @throws Payplug\Exception\ConfigurationNotSetException |
| 33 | 33 | */ |
| 34 | - public static function create($payment, array $data = null, Payplug\Payplug $payplug = null) | |
| 34 | + public static function create($payment, $data = null, $payplug = null) | |
| 35 | 35 | { |
| 36 | 36 | if ($payplug === null) { |
| 37 | 37 | $payplug = Payplug\Payplug::getDefaultConfiguration(); |
| 38 | 38 | } |
| @@ -59,9 +59,9 @@ | ||
| 59 | 59 | * @return null|Payplug\Resource\APIResource|Refund the refund object |
| 60 | 60 | * |
| 61 | 61 | * @throws Payplug\Exception\ConfigurationNotSetException |
| 62 | 62 | */ |
| 63 | - public static function retrieve($payment, $refundId, Payplug\Payplug $payplug = null) | |
| 63 | + public static function retrieve($payment, $refundId, $payplug = null) | |
| 64 | 64 | { |
| 65 | 65 | if ($payplug === null) { |
| 66 | 66 | $payplug = Payplug\Payplug::getDefaultConfiguration(); |
| 67 | 67 | } |
| @@ -89,9 +89,9 @@ | ||
| 89 | 89 | * |
| 90 | 90 | * @throws Payplug\Exception\ConfigurationNotSetException |
| 91 | 91 | * @throws Payplug\Exception\UnexpectedAPIResponseException |
| 92 | 92 | */ |
| 93 | - public static function listRefunds($payment, Payplug\Payplug $payplug = null) | |
| 93 | + public static function listRefunds($payment, $payplug = null) | |
| 94 | 94 | { |
| 95 | 95 | if ($payplug === null) { |
| 96 | 96 | $payplug = Payplug\Payplug::getDefaultConfiguration(); |
| 97 | 97 | } |
| @@ -128,9 +128,9 @@ | ||
| 128 | 128 | * @return Payplug\Resource\APIResource The consistent API resource. |
| 129 | 129 | * |
| 130 | 130 | * @throws Payplug\Exception\UndefinedAttributeException when the local resource is invalid. |
| 131 | 131 | */ |
| 132 | - function getConsistentResource(Payplug\Payplug $payplug = null) | |
| 132 | + function getConsistentResource($payplug = null) | |
| 133 | 133 | { |
| 134 | 134 | if (!array_key_exists('id', $this->_attributes)) { |
| 135 | 135 | throw new Payplug\Exception\UndefinedAttributeException('The id of the refund is not set.'); |
| 136 | 136 | } |