Inflectible.php
1 month ago
InflectorFactory.php
1 month ago
Rules.php
1 month ago
Uninflected.php
1 month ago
Uninflected.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | declare (strict_types=1); |
| 4 | namespace IAWPSCOPED\Doctrine\Inflector\Rules\Turkish; |
| 5 | |
| 6 | use IAWPSCOPED\Doctrine\Inflector\Rules\Pattern; |
| 7 | /** @internal */ |
| 8 | final class Uninflected |
| 9 | { |
| 10 | /** @return Pattern[] */ |
| 11 | public static function getSingular() : iterable |
| 12 | { |
| 13 | yield from self::getDefault(); |
| 14 | } |
| 15 | /** @return Pattern[] */ |
| 16 | public static function getPlural() : iterable |
| 17 | { |
| 18 | yield from self::getDefault(); |
| 19 | } |
| 20 | /** @return Pattern[] */ |
| 21 | private static function getDefault() : iterable |
| 22 | { |
| 23 | (yield new Pattern('lunes')); |
| 24 | (yield new Pattern('rompecabezas')); |
| 25 | (yield new Pattern('crisis')); |
| 26 | } |
| 27 | } |
| 28 |