aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/commerceguys/intl/src/Language/LanguageRepositoryInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/commerceguys/intl/src/Language/LanguageRepositoryInterface.php')
-rw-r--r--vendor/commerceguys/intl/src/Language/LanguageRepositoryInterface.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/vendor/commerceguys/intl/src/Language/LanguageRepositoryInterface.php b/vendor/commerceguys/intl/src/Language/LanguageRepositoryInterface.php
index 12480fc1b..40597e3e5 100644
--- a/vendor/commerceguys/intl/src/Language/LanguageRepositoryInterface.php
+++ b/vendor/commerceguys/intl/src/Language/LanguageRepositoryInterface.php
@@ -11,27 +11,29 @@ interface LanguageRepositoryInterface
* Gets a language matching the provided language code.
*
* @param string $languageCode The language code.
- * @param string $locale The locale (i.e. fr-FR).
+ * @param string|null $locale The locale (i.e. fr-FR).
*
* @return Language
+ *
+ * @throws \CommerceGuys\Intl\Exception\UnknownLanguageException
*/
- public function get($languageCode, $locale = null);
+ public function get(string $languageCode, string $locale = null): Language;
/**
* Gets all languages.
*
- * @param string $locale The locale (i.e. fr-FR).
+ * @param string|null $locale The locale (i.e. fr-FR).
*
* @return Language[] An array of languages, keyed by language code.
*/
- public function getAll($locale = null);
+ public function getAll(string $locale = null): array;
/**
* Gets a list of languages.
*
- * @param string $locale The locale (i.e. fr-FR).
+ * @param string|null $locale The locale (i.e. fr-FR).
*
* @return array An array of language names, keyed by language code.
*/
- public function getList($locale = null);
+ public function getList(string $locale = null): array;
}