PhpSandbox\PHPSandbox::setMagicConstValidator PHP 메소드

setMagicConstValidator() 공개 메소드

Validator callable must accept two parameters: a string of the normalized name of the checked element, and the PHPSandbox instance. NOTE: Normalized magic constant names are upper case and trimmed of __
public setMagicConstValidator ( callable $callable ) : PHPSandbox
$callable callable Callable that validates the passed magic constant name
리턴 PHPSandbox Returns the PHPSandbox instance for fluent querying
    public function setMagicConstValidator($callable)
    {
        $this->validation['magic_constant'] = $callable;
        return $this;
    }
PHPSandbox