Passed
Push — master ( 8b5ce5...b7fcc1 )
by Sebastian
12:08
created

Localization_Currency_MXN::getExamples()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 24
Code Lines 17

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 2
eloc 17
c 1
b 1
f 0
nc 2
nop 1
dl 0
loc 24
rs 9.7
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AppLocalize;
6
7
use AppLocalize\Localization\Countries\CountryInterface;
8
use AppLocalize\Localization\Currencies\BaseCurrency;
9
10
class Localization_Currency_MXN extends BaseCurrency
11
{
12
    public const ISO_CODE = 'MXN';
13
14
    public function getSingular() : string
15
    {
16
        return t('Mexican peso');
17
    }
18
19
    public function getSymbol() : string
20
    {
21
        return '$';
22
    }
23
24
    public function getPlural() : string
25
    {
26
        return t('Mexican peso');
27
    }
28
    
29
    public function getISO() : string
30
    {
31
        return self::ISO_CODE;
32
    }
33
34
    public function isSymbolOnFront() : bool
35
    {
36
        return false;
37
    }
38
39
    public function isNamePreferred() : bool
40
    {
41
        return true;
42
    }
43
44
    public function getStructuralTemplate(?CountryInterface $country=null): string
45
    {
46
        return '{symbol} -{amount}';
47
    }
48
}
49