aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php')
-rw-r--r--vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php b/vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php
index eb726ddb8..36f7d7995 100644
--- a/vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php
+++ b/vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php
@@ -2,6 +2,8 @@
namespace CommerceGuys\Intl\Currency;
+use CommerceGuys\Intl\Exception\UnknownCurrencyException;
+
/**
* Currency repository interface.
*/
@@ -11,27 +13,29 @@ interface CurrencyRepositoryInterface
* Gets a currency matching the provided currency code.
*
* @param string $currencyCode The currency code.
- * @param string $locale The locale (i.e. fr-FR).
+ * @param string|null $locale The locale (i.e. fr-FR).
*
* @return Currency
+ *
+ * @throws UnknownCurrencyException
*/
- public function get($currencyCode, $locale = null);
+ public function get(string $currencyCode, string $locale = null): Currency;
/**
* Gets all currencies.
*
- * @param string $locale The locale (i.e. fr-FR).
+ * @param string|null $locale The locale (i.e. fr-FR).
*
* @return Currency[] An array of currencies, keyed by currency code.
*/
- public function getAll($locale = null);
+ public function getAll(string $locale = null): array;
/**
* Gets a list of currencies.
*
- * @param string $locale The locale (i.e. fr-FR).
+ * @param string|null $locale The locale (i.e. fr-FR).
*
* @return string[] An array of currency names, keyed by currency code.
*/
- public function getList($locale = null);
+ public function getList(string $locale = null): array;
}