public function __construct($cache) { $this->cache = $cache; $this->path = Journal2Cache::getCachePath(); $this->dir = Journal2Cache::getCacheDir(); }