This commit is contained in:
26
api/app/Utils/MesesAnoUtil.php
Normal file
26
api/app/Utils/MesesAnoUtil.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Utils;
|
||||
|
||||
class MesesAnoUtil
|
||||
{
|
||||
public static function getNomeMes($numeroMes) : string
|
||||
{
|
||||
$meses = [
|
||||
1 => 'JANEIRO',
|
||||
2 => 'FEVEREIRO',
|
||||
3 => 'MARÇO',
|
||||
4 => 'ABRIL',
|
||||
5 => 'MAIO',
|
||||
6 => 'JUNHO',
|
||||
7 => 'JULHO',
|
||||
8 => 'AGOSTO',
|
||||
9 => 'SETEMBRO',
|
||||
10 => 'OUTUBRO',
|
||||
11 => 'NOVEMBRO',
|
||||
12 => 'DEZEMBRO'
|
||||
];
|
||||
|
||||
return $meses[$numeroMes] ?? 'MÊS INVÁLIDO';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user