| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Uninflected |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @return Word[]|Pattern[] |
||
| 14 | */ |
||
| 15 | private static function default() : iterable |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return Word[]|Pattern[] |
||
| 29 | */ |
||
| 30 | public static function singular() : iterable |
||
| 31 | { |
||
| 32 | yield from self::default(); |
||
| 33 | |||
| 34 | yield new Pattern('.*ss'); |
||
| 35 | yield new Word('data'); |
||
| 36 | yield new Word('pants'); |
||
| 37 | yield new Word('clothes'); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return Word[]|Pattern[] |
||
| 42 | */ |
||
| 43 | public static function plural() : iterable |
||
| 49 | } |
||
| 50 | } |
||
| 51 |