1 | <?php |
||
7 | final class Bahia extends State |
||
8 | { |
||
9 | const LABEL = 'Bahia'; |
||
10 | |||
11 | const REGEX = '/^([\d]{6,7})(\d{2})$/'; |
||
12 | |||
13 | const FORMAT = '$1-$2'; |
||
14 | |||
15 | const LENGTH = 9; |
||
16 | |||
17 | const DIGITS_COUNT = 2; |
||
18 | |||
19 | 11 | public function __construct() |
|
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | 11 | public function normalizeNumber($number) |
|
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | * |
||
39 | * @see http://www.sintegra.gov.br/Cad_Estados/cad_BA.html |
||
40 | */ |
||
41 | 10 | public function calculateDigit($baseNumber) |
|
54 | |||
55 | 10 | private function discoverModule($baseNumber) |
|
67 | } |
||
68 |