PhpSandbox\PHPSandbox::setTraitValidator PHP Méthode

setTraitValidator() 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 trait names are lowercase
public setTraitValidator ( callable $callable ) : PHPSandbox
$callable callable Callable that validates the passed trait name
Résultat PHPSandbox Returns the PHPSandbox instance for fluent querying
    public function setTraitValidator($callable)
    {
        $this->validation['trait'] = $callable;
        return $this;
    }
PHPSandbox