| Total Complexity | 8 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 92.31% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class CEPValidator extends ConstraintValidator |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Currently only checks if the value is numeric. |
||
| 15 | * @param string $cep |
||
| 16 | * @return boolean |
||
| 17 | */ |
||
| 18 | 2 | public static function isCEPValid($cep) |
|
| 23 | } |
||
| 24 | |||
| 25 | 2 | public static function checkLength($cep) |
|
| 30 | } |
||
| 31 | |||
| 32 | 2 | public function validate($value, Constraint $constraint) |
|
| 45 |