Total Complexity | 5 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | #[Attribute(Attribute::TARGET_PROPERTY)] |
||
9 | class Cpf extends Document |
||
10 | { |
||
11 | public function __construct(bool $mask = true, ?string $message = 'CPF inválido') |
||
14 | } |
||
15 | |||
16 | protected function isValidDocument(string $input): bool |
||
17 | { |
||
18 | if (!$this->validateNumbersWithCorrectLength($input)) { |
||
19 | return false; |
||
20 | } |
||
21 | |||
22 | return $this->validateCpfCnpjDigits($input); |
||
23 | } |
||
24 | |||
25 | protected function maskPattern(): string |
||
28 | } |
||
29 | |||
30 | protected function unmaskedLength(): int |
||
35 |