Method | Description | |
---|---|---|
__construct ( callable $callback ) | Constructor. | |
getAdditionalParams ( ) : array | Returns additional validation callback parameters. | |
getCallback ( ) : string | array | Closure | Returns the validation callback. | |
isValid ( mixed $value ) : boolean | Validates a value. | |
setAdditionalParams ( array $params = [] ) : self | Sets additional validation callback parameters. | |
setCallback ( callable $callback ) : self | Sets the validation callback. |
public __construct ( callable $callback ) | ||
$callback | callable | Validation callback |
public getAdditionalParams ( ) : array | ||
return | array |
public setAdditionalParams ( array $params = [] ) : self | ||
$params | array | Parameters array |
return | self |
public setCallback ( callable $callback ) : self | ||
$callback | callable | Validation callback |
return | self |