| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class RioGrandeDoSul extends State |
||
| 8 | { |
||
| 9 | const LONG_NAME = 'RioGrandeDoSul'; |
||
| 10 | |||
| 11 | const REGEX = '/^([0-4])(\d{2})(\d{7})$/'; |
||
| 12 | |||
| 13 | const FORMAT = '$1$2/$3'; |
||
| 14 | |||
| 15 | const LENGTH = 10; |
||
| 16 | |||
| 17 | const NUMBER_OF_DIGITS = 1; |
||
| 18 | |||
| 19 | const SHORT_NAME = 'RS'; |
||
| 20 | |||
| 21 | 12 | public function __construct() |
|
| 22 | { |
||
| 23 | 12 | parent::__construct(self::LONG_NAME, self::LENGTH, self::NUMBER_OF_DIGITS, self::REGEX, self::FORMAT); |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | * |
||
| 29 | * @see http://www.sintegra.gov.br/Cad_Estados/cad_RS.html |
||
| 30 | */ |
||
| 31 | 10 | public function calculateDigit(string $baseNumber) : string |
|
| 41 | } |
||
| 42 | } |
||
| 43 |