src/I18Next/Locale/Processor/Key/KeyPlural.php
<?php
namespace I18Next\Locale\Processor\Key;
final class KeyPlural extends AbstractProcessorKey
{
/**
* {@inheritdoc}
*/
public static function willBeProcessed(string $key): bool
{
if ('plural' !== $key) {
return false;
}
return true;
}
/**
* {@inheritdoc}
*/
protected function process(): void
{
$this->results[$this->getKeyCleared().'/2'] = $this->value;
}
}