uncompressedSize = $stat['size']; $this->modificationTime = $stat['mtime']; } /** * @param string $fileName * * @return string|false */ public function getFileContent($fileName = null) { return gzdecode(file_get_contents($this->fileName)); } /** * @param string $fileName * * @return bool|resource|string */ public function getFileResource($fileName = null) { return gzopen($this->fileName, 'rb'); } /** * @param $data * * @return mixed|string */ protected static function compressData($data) { return gzencode($data); } }