/home/techb158/immovalet.com/platform/core/js-validation/src/Support
Edit: /home/techb158/immovalet.com/platform/core/js-validation/src/Support/ValidationRuleParserProxy.php (1524B)
parser = new ValidationRuleParser((array)$data);
$this->parserMethod = $this->createProtectedCaller($this->parser);
}
/**
* Extract the rule name and parameters from a rule.
*
* @param array|string $rules
* @return array
*/
public function parse($rules)
{
return $this->parser->parse($rules);
}
/**
* Explode the rules into an array of explicit rules.
*
* @param array $rules
* @return mixed
*/
public function explodeRules($rules)
{
return $this->callProtected($this->parserMethod, 'explodeRules', [$rules]);
}
/**
* Delegate method calls to parser instance.
*
* @param string $method
* @param mixed $params
* @return mixed
*/
public function __call($method, $params)
{
$arrCaller = [$this->parser, $method];
return call_user_func_array($arrCaller, $params);
}
}