public function setCacheDirectory($cacheDirectory) { $this->cacheDirectory = rtrim($cacheDirectory, '/') . '/'; }