NetefxValidatorRule::evaluate
evaluates the given expression, having names of other fields included in the characters @ and ~ resp.
Since you need numeric expressions to do arithmetic operations and for security reasons you have to call checkNumeric() before.
Signature
protected function evaluate(array
$data,
string
$expr )
Parameters
$data
— array$expr
— string
Returns
- string