PhpSandbox\PHPSandbox::setAliasValidator PHP Method

setAliasValidator() public method

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