| 1 |
<?php |
| 2 |
|
| 3 |
namespace Give\Framework\Support; |
| 4 |
|
| 5 |
use Give\Framework\Support\Facades\CurrencyFacade; |
| 6 |
use Give\Framework\Support\Facades\Facade; |
| 7 |
use Money\Money; |
| 8 |
|
| 9 |
/** |
| 10 |
* @method static Money convertToBaseCurrency(Money $amount, int|float|string $exchangeRate = 1) |
| 11 |
* @method static Money parseFromDecimal(string|float|int $amount, string $currencyCode) |
| 12 |
* @method static string formatToDecimal(Money $amount) |
| 13 |
* @method static string formatToLocale(Money $amount, $local = null) |
| 14 |
* @method static \Money\Currency getBaseCurrency() |
| 15 |
*/ |
| 16 |
class Currency extends Facade |
| 17 |
{ |
| 18 |
/** |
| 19 |
* @inheritDoc |
| 20 |
*/ |
| 21 |
protected function getFacadeAccessor() |
| 22 |
{ |
| 23 |
return CurrencyFacade::class; |
| 24 |
} |
| 25 |
} |
| 26 |
|