Passed
Pull Request — master (#90)
by Jonathan
02:20
created

Ruleset   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

4 Methods

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