PhpSandbox\PHPSandbox::setNamespaceValidator PHP 메소드

setNamespaceValidator() 공개 메소드

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