Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class Integer |
||
8 | { |
||
9 | /** |
||
10 | * Retorna o inteiro com a quantidade de caracteres escolhido |
||
11 | * Formatando com zeros à esquerda se necessário |
||
12 | * @param int $int |
||
13 | * @param int $length |
||
14 | * @return string |
||
15 | */ |
||
16 | public static function minLength($int = 0, $length = 2) |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Retorna o Id com no mínimo 6 dígitos |
||
23 | * @param int $id |
||
24 | * @return string |
||
25 | */ |
||
26 | public static function formatId($id) |
||
31 |