PhpSandbox\PHPSandbox::setConstValidator PHP Méthode

setConstValidator() public méthode

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