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

Mostrar archivo Open project: Webiny/Framework Interface Usage Examples

Public Methods

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

Method Details

getName() public method

Get validator name, eg: email
public getName ( ) : string
return string

validate() public method

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