Ruleset::getRegular()   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;
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