public function addFile($key, $file) { $this->params[$key] = new \CURLFile($file->getPath(), $file->getMime(), $file->getName()); }