| Total Complexity | 4 |
| Total Lines | 25 |
| 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 | const ABBRE_LENGTH = 3; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param int $month |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | public static function getName($month) { |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param int $month |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public static function getNameAbbre($month) { |
||
| 37 |
If the returned type also contains false, it is an indicator that maybe an error condition leading to the specific return statement remains unhandled.