예제 #1
0
 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;
 }
예제 #2
0
 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;
 }