private function getCacheFile() { if (!$this->tempDirectory) { throw new \LogicException('Set path to temporary directory using setTempDirectory().'); } return $this->tempDirectory . '/' . md5(serialize($this->getCacheKey())) . '.php'; }