Skip to content

Commit fef5aff

Browse files
authored
Merge pull request #14 from bladeroot/crypto-currencies
Add supports cryptocurrencies
2 parents 545b68a + 8b00baf commit fef5aff

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Message/AbstractRequest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,4 +257,16 @@ public function getCurrencyByPurse($purse)
257257
return null;
258258
}
259259
}
260+
261+
public function getCurrencies()
262+
{
263+
if ($this->currencies === null) {
264+
$this->currencies = new \Money\Currencies\AggregateCurrencies([
265+
new \Money\Currencies\CryptoCurrencies(),
266+
new \Money\Currencies\ISOCurrencies(),
267+
]);
268+
}
269+
270+
return $this->currencies;
271+
}
260272
}

0 commit comments

Comments
 (0)