Passed
Push — master ( 989424...9f50f4 )
by Jonathan
29s
created

Uninflected   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
dl 0
loc 28
ccs 12
cts 12
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPlural() 0 3 1
A getSingular() 0 3 1
A getDefault() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Inflector\Rules\Portuguese;
6
7
use Doctrine\Inflector\Rules\Pattern;
8
9
final class Uninflected
10
{
11
    /**
12
     * @return Pattern[]
13
     */
14 54
    public static function getSingular() : iterable
15
    {
16 54
        yield from self::getDefault();
17 54
    }
18
19
    /**
20
     * @return Pattern[]
21
     */
22 54
    public static function getPlural() : iterable
23
    {
24 54
        yield from self::getDefault();
25 54
    }
26
27
    /**
28
     * @return Pattern[]
29
     */
30 54
    private static function getDefault() : iterable
31
    {
32 54
        yield new Pattern('tórax');
33 54
        yield new Pattern('tênis');
34 54
        yield new Pattern('ônibus');
35 54
        yield new Pattern('lápis');
36 54
        yield new Pattern('fênix');
37 54
    }
38
}
39