PhpSandbox\PHPSandbox::setOperatorValidator PHP Method

setOperatorValidator() public method

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