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