Total Complexity | 6 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class Month { |
||
9 | |||
10 | /** @var string[] */ |
||
11 | public static $names = [1 => 'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro']; |
||
12 | protected $month; |
||
13 | |||
14 | const ABBRE_LENGTH = 3; |
||
15 | |||
16 | /** |
||
17 | * @param int|string $month |
||
18 | * @return static |
||
19 | */ |
||
20 | public static function create($month) { |
||
21 | return new static($month); |
||
22 | } |
||
23 | |||
24 | /** @param int|string $month */ |
||
25 | public function __construct($month) { |
||
27 | } |
||
28 | |||
29 | /** @return string|false */ |
||
30 | public function getName() { |
||
32 | } |
||
33 | |||
34 | /** @return string|false */ |
||
35 | public function getNameAbbre() { |
||
41 | } |
||
42 | } |
||
45 |