PhpSandbox\PHPSandbox::setInterfaceValidator PHP Méthode

setInterfaceValidator() public méthode

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