1 | <?php |
||
7 | class PluralFilter |
||
8 | { |
||
9 | /** |
||
10 | * Make sure that a number is accompanied with the appropriate grammatical |
||
11 | * number |
||
12 | * |
||
13 | * @param number $number |
||
14 | * @param string $singular The noun in its singular form |
||
15 | * @param string|null $plural The noun in its plural form (calculated |
||
16 | * automatically by default) |
||
17 | * @param bool $hideNumber Whether or not to hide the number from the return value |
||
18 | * |
||
19 | * @return string |
||
20 | 1 | */ |
|
21 | public function __invoke($singular, $number = null, $plural = null, $hideNumber = null) |
||
35 | 1 | ||
36 | public static function get() |
||
40 | } |
||
41 |