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

Ruleset::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 3
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
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 532
    public function __construct(Rules $rules, Uninflected $uninflected, Irregular $irregular)
19
    {
20 532
        $this->rules       = $rules;
21 532
        $this->uninflected = $uninflected;
22 532
        $this->irregular   = $irregular;
23 532
    }
24
25 182
    public function getRules() : Rules
26
    {
27 182
        return $this->rules;
28
    }
29
30 424
    public function getUninflected() : Uninflected
31
    {
32 424
        return $this->uninflected;
33
    }
34
35 514
    public function getIrregular() : Irregular
36
    {
37 514
        return $this->irregular;
38
    }
39
}
40