validators\InlineValidator $method

$method public property

An anonymous function or the name of a model class method that will be called to perform the actual validation. The signature of the method should be like the following, where $attribute is the name of the attribute to be validated, and $params contains the value of $params that you specify when declaring the inline validation rule:

function foo($attribute, $params)
public string|Closure $method = null
doc_Yii
2016-10-30 17:13:50
Comments
Leave a Comment

Please login to continue.