private function parsePackageJson($json)
 {
     $package = new Package();
     $package->setCreatedAt(new \DateTime());
     $package->setUpdatedAt(new \DateTime());
     if (isset($json->name)) {
         list($vendorName, $packageName) = explode('/', $json->name, 2);
         $vendor = new Vendor();
         $vendor->setName($vendorName);
         $package->setName($packageName);
         $package->setVendor($vendor);
         $package->setFullname($json->name);
     }
     if (isset($json->description)) {
         $package->setDescription($json->description);
     }
     return $package;
 }