| Total Complexity | 4 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | #[Attribute(Attribute::TARGET_PROPERTY)] |
||
| 10 | class Cep extends Document |
||
| 11 | { |
||
| 12 | public function __construct(bool $mask = true, ?string $message = 'CEP inválido') |
||
| 13 | { |
||
| 14 | parent::__construct($mask, $message); |
||
| 15 | } |
||
| 16 | |||
| 17 | public function isValidDocument(string $input): bool |
||
| 18 | { |
||
| 19 | return $this->validateNumbersWithCorrectLength($input); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function maskPattern(): string |
||
| 25 | } |
||
| 26 | |||
| 27 | public function unmaskedLength(): int |
||
| 30 | } |
||
| 31 | } |
||
| 32 |