PhpSandbox\PHPSandbox::setGlobalValidator PHP Метод

setGlobalValidator() публичный Метод

Validator callable must accept two parameters: a string of the normalized name of the checked element, and the PHPSandbox instance
public setGlobalValidator ( callable $callable ) : PHPSandbox
$callable callable Callable that validates the passed global name
Результат PHPSandbox Returns the PHPSandbox instance for fluent querying
    public function setGlobalValidator($callable)
    {
        $this->validation['global'] = $callable;
        return $this;
    }
PHPSandbox