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

Uninflected::getDefault()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Inflector\Rules\Spanish;
6
7
use Doctrine\Inflector\Rules\Pattern;
8
9
final class Uninflected
10
{
11
    /**
12
     * @return Pattern[]
13
     */
14 72
    public static function getSingular() : iterable
15
    {
16 72
        yield from self::getDefault();
17 72
    }
18
19
    /**
20
     * @return Pattern[]
21
     */
22 72
    public static function getPlural() : iterable
23
    {
24 72
        yield from self::getDefault();
25 72
    }
26
27
    /**
28
     * @return Pattern[]
29
     */
30 72
    private static function getDefault() : iterable
31
    {
32 72
        yield new Pattern('lunes');
33 72
        yield new Pattern('rompecabezas');
34 72
        yield new Pattern('crisis');
35 72
    }
36
}
37