Skip to content

Commit cda8afc

Browse files
committed
Remove public Money references ref #166
1 parent 1421afd commit cda8afc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Common/Message/AbstractRequest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,10 @@ protected function getCurrencies()
308308
* @return null|Money
309309
* @throws InvalidRequestException
310310
*/
311-
public function getMoney($amount = null)
311+
private function getMoney($amount = null)
312312
{
313313
$amount = $amount !== null ? $amount : $this->getParameter('amount');
314314

315-
if ($amount instanceof Money) {
316-
return $amount;
317-
}
318-
319315
if ($amount !== null) {
320316
$moneyParser = new DecimalMoneyParser($this->getCurrencies());
321317
$currencyCode = $this->getCurrency() ?: 'USD';

0 commit comments

Comments
 (0)