| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace Doctrine\Inflector\Rules\French; |
| 6 |
|
| 7 |
use Doctrine\Inflector\Rules\Pattern; |
| 8 |
|
| 9 |
final class Uninflected |
| 10 |
{ |
| 11 |
|
| 12 |
public static function getSingular(): iterable |
| 13 |
{ |
| 14 |
yield from self::getDefault(); |
| 15 |
|
| 16 |
yield new Pattern('bois'); |
| 17 |
yield new Pattern('mas'); |
| 18 |
} |
| 19 |
|
| 20 |
|
| 21 |
public static function getPlural(): iterable |
| 22 |
{ |
| 23 |
yield from self::getDefault(); |
| 24 |
} |
| 25 |
|
| 26 |
|
| 27 |
private static function getDefault(): iterable |
| 28 |
{ |
| 29 |
yield new Pattern(''); |
| 30 |
} |
| 31 |
} |