public setCacheDirectory ( string $dir ) | ||
$dir | string |
public function setCacheDirectory($dir)
{
$dir = rtrim($dir, ' \\/');
if (!is_dir($dir) || !is_readable($dir)) {
throw new \Mutagenesis\FUTException('Invalid cache directory: "' . $dir . '"');
}
$this->_cacheDirectory = $dir;
return $this;
}