1 | <?php |
||
13 | class MonolingualMonthNameProvider implements MonthNameProvider { |
||
14 | |||
15 | /** |
||
16 | * @var string[] |
||
17 | */ |
||
18 | private $monthNames; |
||
19 | |||
20 | /** |
||
21 | * @param string[] $monthNames Array mapping month numbers (1 to 12) to localized month names. |
||
22 | */ |
||
23 | function __construct( array $monthNames ) { |
||
26 | |||
27 | /** |
||
28 | * @param string $languageCode Ignored in this implementation. |
||
29 | * |
||
30 | * @return string[] Array mapping month numbers (1 to 12) to localized month names. |
||
31 | */ |
||
32 | public function getLocalizedMonthNames( $languageCode ) { |
||
35 | |||
36 | /** |
||
37 | * @param string $languageCode Ignored in this implementation. |
||
38 | * |
||
39 | * @return int[] Array mapping localized month names to month numbers (1 to 12). |
||
40 | */ |
||
41 | public function getMonthNumbers( $languageCode ) { |
||
44 | |||
45 | } |
||
46 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.