kwn/number-to-words

View on GitHub
src/Language/Uzbek/UzbekExponentGetter.php

Summary

Maintainability
A
1 hr
Test Coverage
A
100%
<?php

namespace NumberToWords\Language\Uzbek;

use NumberToWords\Language\ExponentGetter;

class UzbekExponentGetter implements ExponentGetter
{
    private static array $exponent = [
        '',
        'ming',
        'million',
        'milliard',
        'trillion',
        'kvadrillion',
        'kvintillion',
        'sextillion',
        'septillion',
        'oktillion',
        'nonillion',
        'decillion',
        'undecillionname',
        'duodecillionname',
        'tredecillionname',
        'quattuordecillion',
        'quindecillionname',
        'sexdecillion',
        'septendecillion',
        'oktodecillion',
        'novemdecillion',
        'vigintillion',
    ];

    public function getExponent(int $power): string
    {
        return self::$exponent[$power];
    }
}