Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 |
|
33 | } |
||
34 | |||
35 | 682 | public function getIrregular() : Substitutions |
|
38 | } |
||
39 | } |
||
40 |