public __construct ( string $dir ) : |
||
$dir | string | |
Результат |
public function __construct($dir)
{
if (!file_exists($dir)) {
throw new Exception('Error: That cache directory does not exist.');
} else {
if (!is_writable($dir)) {
throw new Exception('Error: That cache directory is not writable.');
}
}
$this->dir = realpath($dir);
}