SouthDictionary::tripletTenSeparator()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * @link https://github.com/phpviet/number-to-words
4
 * @copyright (c) PHP Viet
5
 * @license [MIT](http://www.opensource.org/licenses/MIT)
6
 */
7
8
namespace PHPViet\NumberToWords;
9
10
/**
11
 * @author Vuong Minh <[email protected]>
12
 * @since 1.0.0
13
 */
14
class SouthDictionary extends Dictionary
15
{
16
    /**
17
     * Thay nghìn => ngàn.
18
     *
19
     * @var array
20
     */
21
    protected static $exponents = [
22
        '',
23
        'ngàn',
24
        'triệu',
25
        'tỷ',
26
        'ngàn tỷ',
27
        'triệu tỷ',
28
    ];
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function tripletTenSeparator(): string
34
    {
35
        return 'lẻ';
36
    }
37
38
    /**
39
     * {@inheritdoc}
40
     */
41
    public function specialTripletUnitFour(): string
42
    {
43
        return 'bốn';
44
    }
45
}
46