PhpSandbox\PHPSandbox::setVarValidator PHP 메소드

setVarValidator() 공개 메소드

Validator callable must accept two parameters: a string of the normalized name of the checked element, and the PHPSandbox instance
public setVarValidator ( callable $callable ) : PHPSandbox
$callable callable Callable that validates the passed variable name
리턴 PHPSandbox Returns the PHPSandbox instance for fluent querying
    public function setVarValidator($callable)
    {
        $this->validation['variable'] = $callable;
        return $this;
    }
PHPSandbox