PHP Interface Webiny\Component\Entity\Attribute\Validation\ValidatorInterface

Afficher le fichier Open project: Webiny/Framework Interface Usage Examples

Méthodes publiques

Méthode Description
getName ( ) : string Get validator name, eg: email
validate ( AbstractAttribute $attribute, mixed $data, array $params = [] ) : boolean Validate given data

Method Details

getName() public méthode

Get validator name, eg: email
public getName ( ) : string
Résultat string

validate() public méthode

Validate given data
public validate ( AbstractAttribute $attribute, mixed $data, array $params = [] ) : boolean
$attribute Webiny\Component\Entity\Attribute\AbstractAttribute
$data mixed
$params array
Résultat boolean