PhpSandbox\PHPSandbox::isWhitelistedType PHP Method

isWhitelistedType() public method

Check if PHPSandbox instance has whitelisted type name set
public isWhitelistedType ( string $name ) : boolean
$name string String of type $name to query
return boolean Returns true if PHPSandbox instance has whitelisted type $name, false otherwise
    public function isWhitelistedType($name)
    {
        $name = $this->normalizeType($name);
        return isset($this->whitelist['types'][$name]);
    }
PHPSandbox