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

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

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