Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class Rules |
||
13 | { |
||
14 | 23 | public static function getSingularRuleset() : Ruleset |
|
15 | { |
||
16 | 23 | return new Ruleset( |
|
17 | 23 | new Transformations(...Inflectible::getSingular()), |
|
18 | 23 | new Patterns(...Uninflected::getSingular()), |
|
19 | 23 | (new Substitutions(...Inflectible::getIrregular()))->getFlippedSubstitutions() |
|
20 | ); |
||
21 | } |
||
22 | |||
23 | 23 | public static function getPluralRuleset() : Ruleset |
|
29 | ); |
||
30 | } |
||
32 |