public function fillPackage($update) { $package = new Package(); $package->setVersion($update['version'])->setDescription($update['description'])->setUpdateType($update['update-type'])->setChangelog($update['changelog'])->setMaintainer($update['maintainer'])->setFilemapping($update['filemapping']); if (array_key_exists('include', $update)) { $package->setInclude($update['include']); } return $package; }
public function fillPackage($update) { $package = new Package(); $package->setVersion($update['version'])->setDescription($update['description'])->setUpdateType($update['update-type'])->setChangelog($update['changelog'])->setMaintainer($update['maintainer'])->setFilemapping($update['filemapping'])->setComposerAction($update['composer-action']); return $package; }