Ruleset   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 10
c 1
b 0
f 0
dl 0
loc 31
ccs 11
cts 11
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getUninflected() 0 3 1
A getIrregular() 0 3 1
A __construct() 0 5 1
A getRegular() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Inflector\Rules;
6
7
class Ruleset
8
{
9
    /** @var Transformations */
10
    private $regular;
11
12
    /** @var Patterns */
13
    private $uninflected;
14
15
    /** @var Substitutions */
16
    private $irregular;
17
18 1109
    public function __construct(Transformations $regular, Patterns $uninflected, Substitutions $irregular)
19
    {
20 1109
        $this->regular     = $regular;
21 1109
        $this->uninflected = $uninflected;
22 1109
        $this->irregular   = $irregular;
23 1109
    }
24
25 490
    public function getRegular() : Transformations
26
    {
27 490
        return $this->regular;
28
    }
29
30 1082
    public function getUninflected() : Patterns
31
    {
32 1082
        return $this->uninflected;
33
    }
34
35 682
    public function getIrregular() : Substitutions
36
    {
37 682
        return $this->irregular;
38
    }
39
}
40