# give/4.16.9/src/Framework/Support/Currency.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 26 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/Framework/Support/Currency.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/Framework/Support/Currency.php
- Modified: 2022-05-11T23:49:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/Framework/Support/Currency.php#L10-L20`.

```php
<?php

namespace Give\Framework\Support;

use Give\Framework\Support\Facades\CurrencyFacade;
use Give\Framework\Support\Facades\Facade;
use Money\Money;

/**
 * @method static Money convertToBaseCurrency(Money $amount, int|float|string $exchangeRate = 1)
 * @method static Money parseFromDecimal(string|float|int $amount, string $currencyCode)
 * @method static string formatToDecimal(Money $amount)
 * @method static string formatToLocale(Money $amount, $local = null)
 * @method static \Money\Currency getBaseCurrency()
 */
class Currency extends Facade
{
    /**
     * @inheritDoc
     */
    protected function getFacadeAccessor()
    {
        return CurrencyFacade::class;
    }
}

```
