PhpSandbox\PHPSandbox::setSuperglobalValidator PHP Méthode

setSuperglobalValidator() 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 superglobal names are uppercase and without a leading _
public setSuperglobalValidator ( callable $callable ) : PHPSandbox
$callable callable Callable that validates the passed superglobal name
Résultat PHPSandbox Returns the PHPSandbox instance for fluent querying
    public function setSuperglobalValidator($callable)
    {
        $this->validation['superglobal'] = $callable;
        return $this;
    }
PHPSandbox