PhpSandbox\PHPSandbox::setPrimitiveValidator PHP Method

setPrimitiveValidator() public method

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