Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class Inflectible |
||
13 | { |
||
14 | /** |
||
15 | * @return Transformation[] |
||
16 | */ |
||
17 | 23 | public static function getSingular() : iterable |
|
18 | { |
||
19 | 23 | yield new Transformation(new Pattern('/re$/i'), 'r'); |
|
|
|||
20 | 23 | yield new Transformation(new Pattern('/er$/i'), ''); |
|
21 | 23 | } |
|
22 | |||
23 | /** |
||
24 | * @return Transformation[] |
||
25 | */ |
||
26 | 23 | public static function getPlural() : iterable |
|
31 | 23 | } |
|
32 | |||
33 | /** |
||
34 | * @return Substitution[] |
||
35 | */ |
||
36 | 23 | public static function getIrregular() : iterable |
|
41 |