| 1 | <?php |
||
| 6 | abstract class BasePluralization |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @abstract |
||
| 10 | * @param string $word |
||
| 11 | * @param int $count |
||
| 12 | * |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | public static function pluralize($word, $count = 2) { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @abstract |
||
| 21 | * @param string $word |
||
| 22 | * @param string $case |
||
| 23 | * @param bool $animateness |
||
| 24 | * |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public static function getCase($word, $case, $animateness = false) { |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @abstract |
||
| 33 | * @param string $word |
||
| 34 | * @param bool $animateness |
||
| 35 | * |
||
| 36 | * @return string[] |
||
| 37 | * @phpstan-return array<string, string> |
||
| 38 | */ |
||
| 39 | public static function getCases($word, $animateness = false) { |
||
| 42 | } |
||
| 43 |