PhpSandbox\PHPSandbox::hasWhitelist PHP Method

hasWhitelist() public method

Query whether PHPSandbox instance has whitelist type
public hasWhitelist ( string $type ) : integer
$type string The whitelist type to query
return integer Returns the number of whitelists this instance has defined
    public function hasWhitelist($type)
    {
        return count($this->whitelist[$type]);
    }
PHPSandbox