Total Complexity | 6 |
Total Lines | 35 |
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 | |||
13 | /** @var int */ |
||
14 | protected $month; |
||
15 | |||
16 | const ABBRE_LENGTH = 3; |
||
17 | |||
18 | /** |
||
19 | * @param int|string $month |
||
20 | * @return static |
||
21 | */ |
||
22 | public static function create($month) { |
||
23 | return new static($month); |
||
24 | } |
||
25 | |||
26 | /** @param int|string $month */ |
||
27 | public function __construct($month) { |
||
29 | } |
||
30 | |||
31 | /** @return string|false */ |
||
32 | public function getName() { |
||
34 | } |
||
35 | |||
36 | /** @return string|false */ |
||
37 | public function getNameAbbre() { |
||
43 | } |
||
44 | } |
||
47 |