Pop\Cache\Adapter\File::__construct PHP Метод

__construct() публичный Метод

Instantiate the cache file object
public __construct ( string $dir ) : File
$dir string
Результат File
    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);
    }