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