for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Polyglot\Pluralization\Rules;
/**
* @package Polyglot/Pluralization/Rules
* @author Mihai MATEI <[email protected]>
*/
class Icelandic implements RuleInterface
{
* @inheritDoc
public function decide(int $n): int
return ($n % 10 !== 1 || $n % 100 === 11) ? 1 : 0;
}