PhpSandbox\PHPSandbox::setClassValidator PHP Method

setClassValidator() public method

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