← All changes
|
vendor/payplug/payplug-php/lib/Payplug/Resource/InstallmentPlan.php
+5
-5
1.2.1
→
3.1.0
View file →
| @@ -70,9 +70,9 @@ | ||
| 70 | 70 | * |
| 71 | 71 | * @throws Payplug\Exception\UndefinedAttributeException |
| 72 | 72 | * @throws Payplug\Exception\UnexpectedAPIResponseException |
| 73 | 73 | */ |
| 74 | - public function listPayments(Payplug\Payplug $payplug = null) | |
| 74 | + public function listPayments($payplug = null) | |
| 75 | 75 | { |
| 76 | 76 | if ($payplug === null) { |
| 77 | 77 | $payplug = Payplug\Payplug::getDefaultConfiguration(); |
| 78 | 78 | } |
| @@ -105,9 +105,9 @@ | ||
| 105 | 105 | * @return null|InstallmentPlan the aborted installment plan or null on error |
| 106 | 106 | * |
| 107 | 107 | * @throws Payplug\Exception\ConfigurationNotSetException |
| 108 | 108 | */ |
| 109 | - public function abort(Payplug\Payplug $payplug = null) | |
| 109 | + public function abort($payplug = null) | |
| 110 | 110 | { |
| 111 | 111 | if ($payplug === null) { |
| 112 | 112 | $payplug = Payplug\Payplug::getDefaultConfiguration(); |
| 113 | 113 | } |
| @@ -130,9 +130,9 @@ | ||
| 130 | 130 | * @return null|InstallmentPlan the retrieved installment plan or null on error |
| 131 | 131 | * |
| 132 | 132 | * @throws Payplug\Exception\ConfigurationNotSetException |
| 133 | 133 | */ |
| 134 | - public static function retrieve($installmentPlanId, Payplug\Payplug $payplug = null) | |
| 134 | + public static function retrieve($installmentPlanId, $payplug = null) | |
| 135 | 135 | { |
| 136 | 136 | if ($payplug === null) { |
| 137 | 137 | $payplug = Payplug\Payplug::getDefaultConfiguration(); |
| 138 | 138 | } |
| @@ -155,9 +155,9 @@ | ||
| 155 | 155 | * @return null|InstallmentPlan the created installment plan instance |
| 156 | 156 | * |
| 157 | 157 | * @throws Payplug\Exception\ConfigurationNotSetException |
| 158 | 158 | */ |
| 159 | - public static function create(array $data, Payplug\Payplug $payplug = null) | |
| 159 | + public static function create(array $data, $payplug = null) | |
| 160 | 160 | { |
| 161 | 161 | if ($payplug === null) { |
| 162 | 162 | $payplug = Payplug\Payplug::getDefaultConfiguration(); |
| 163 | 163 | } |
| @@ -179,9 +179,9 @@ | ||
| 179 | 179 | * @return Payplug\Resource\APIResource The consistent API resource. |
| 180 | 180 | * |
| 181 | 181 | * @throws Payplug\Exception\UndefinedAttributeException when the local resource is invalid. |
| 182 | 182 | */ |
| 183 | - function getConsistentResource(Payplug\Payplug $payplug = null) | |
| 183 | + function getConsistentResource($payplug = null) | |
| 184 | 184 | { |
| 185 | 185 | if (!array_key_exists('id', $this->_attributes)) { |
| 186 | 186 | throw new Payplug\Exception\UndefinedAttributeException( |
| 187 | 187 | 'The id of the installment plan is not set.'); |