public function requirements($name = null)
{
$requirements = array('streamWhiteListed' => !$this->whiteListNeeded('suhosin'), 'cacheFolderExists' => !$this->options['cache'] || is_dir($this->options['cache']), 'cacheFolderIsWritable' => !$this->options['cache'] || is_writable($this->options['cache']));
if ($name) {
if (!isset($requirements[$name])) {
throw new \InvalidArgumentException($name . ' is not in the requirements list (' . implode(', ', array_keys($requirements)) . ')', 19);
}
return $requirements[$name];
}
return $requirements;
}