Uninflected::getPlural()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Inflector\Rules\NorwegianBokmal;
6
7
use Doctrine\Inflector\Rules\Pattern;
8
9
final class Uninflected
10
{
11
    /**
12
     * @return Pattern[]
13
     */
14 23
    public static function getSingular() : iterable
15
    {
16 23
        yield from self::getDefault();
0 ignored issues
show
Bug Best Practice introduced by
The expression YieldFromNode returns the type Generator which is incompatible with the documented return type Doctrine\Inflector\Rules\Pattern[].
Loading history...
17 23
    }
18
19
    /**
20
     * @return Pattern[]
21
     */
22 23
    public static function getPlural() : iterable
23
    {
24 23
        yield from self::getDefault();
0 ignored issues
show
Bug Best Practice introduced by
The expression YieldFromNode returns the type Generator which is incompatible with the documented return type Doctrine\Inflector\Rules\Pattern[].
Loading history...
25 23
    }
26
27
    /**
28
     * @return Pattern[]
29
     */
30 23
    private static function getDefault() : iterable
31
    {
32 23
        yield new Pattern('barn');
0 ignored issues
show
Bug Best Practice introduced by
The expression yield new Doctrine\Infle...r\Rules\Pattern('barn') returns the type Generator which is incompatible with the documented return type Doctrine\Inflector\Rules\Pattern[].
Loading history...
33 23
        yield new Pattern('fjell');
34 23
        yield new Pattern('hus');
35 23
    }
36
}
37