for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Fisharebest\Localization\PluralRule;
use DomainException;
/**
* Class PluralRuleUnknown - used by languages for which the plural rules are not known.
*
* We cannot use this language for translation, but we can use its other attributes.
* @author Greg Roach <[email protected]>
* @copyright (c) 2018 Greg Roach
* @license GPLv3+
*/
class PluralRuleUnknown implements PluralRuleInterface
{
public function plurals()
throw new DomainException('No plural rule defined for this language');
}
public function plural($number)