kwn/number-to-words

View on GitHub
src/Language/Bulgarian/BulgarianNounGenderInflector.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace NumberToWords\Language\Bulgarian;

class BulgarianNounGenderInflector
{
    public function inflectNounByNumber(int $number, string $singular, string $plural, string $genitivePlural): string
    {
        if ($number === 1) {
            return $singular;
        }

        return $plural;
    }
}