<?php
namespace App\Validator;
use Symfony\Component\Validator\Constraint;
/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Marcelo Saldanha <saldanha@nautilos.com.br>
*/
class BrasilCpf extends Constraint
{
/*
* Any public properties become valid options for the annotation.
* Then, use these in your validator class.
*/
public string $message = 'The value "{{ value }}" is not valid.';
/*
* Any public properties become valid options for the annotation.
* Then, use these in your validator class.
*/
public string $length_message = 'The value "{{ value }}" have a invalid length.';
/*
* Any public properties become valid options for the annotation.
* Then, use these in your validator class.
*/
public string $dv_message = 'The document "{{ value }}" fails the validation.';
public bool $pad_left = true;
}