Language names via intl library. Fixes #773

This commit is contained in:
Stefan Parviainen
2014-12-30 19:57:12 +01:00
parent 8e034a3b6b
commit 9cab8ae58a
994 changed files with 498711 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
<?php
namespace CommerceGuys\Intl\Exception;
interface ExceptionInterface
{
}

View File

@@ -0,0 +1,11 @@
<?php
namespace CommerceGuys\Intl\Exception;
/**
* This exception is thrown when an invalid argument is passed to a method.
* For example, a float amount instead of the expected string amount.
*/
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
{
}

View File

@@ -0,0 +1,11 @@
<?php
namespace CommerceGuys\Intl\Exception;
/**
* This exception is thrown when an unknown country code is passed to the
* CountryRepository.
*/
class UnknownCountryException extends InvalidArgumentException implements ExceptionInterface
{
}

View File

@@ -0,0 +1,11 @@
<?php
namespace CommerceGuys\Intl\Exception;
/**
* This exception is thrown when an unknown currency code is passed to the
* CurrencyRepository.
*/
class UnknownCurrencyException extends InvalidArgumentException implements ExceptionInterface
{
}

View File

@@ -0,0 +1,11 @@
<?php
namespace CommerceGuys\Intl\Exception;
/**
* This exception is thrown when an unknown language code is passed to the
* LanguageRepository.
*/
class UnknownLanguageException extends InvalidArgumentException implements ExceptionInterface
{
}

View File

@@ -0,0 +1,10 @@
<?php
namespace CommerceGuys\Intl\Exception;
/**
* This exception is thrown when an unknown locale is passed to a repository.
*/
class UnknownLocaleException extends InvalidArgumentException implements ExceptionInterface
{
}