PhpSandbox\PHPSandbox::isBlacklistedTrait PHP Method

isBlacklistedTrait() public method

Check if PHPSandbox instance has blacklisted trait name set
public isBlacklistedTrait ( string $name ) : boolean
$name string String of trait $name to query
return boolean Returns true if PHPSandbox instance has blacklisted trait $name, false otherwise
    public function isBlacklistedTrait($name)
    {
        $name = $this->normalizeTrait($name);
        return isset($this->blacklist['traits'][$name]);
    }
PHPSandbox