Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
Webiny
Component
Entity
Attribute
Validation
ValidatorInterface
PHP Interface Webiny\Component\Entity\Attribute\Validation\ValidatorInterface
Mostra file
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