/**
  * @return array
  */
 public function getInstalledFiles()
 {
     return $this->package->getInstalledFiles();
 }
 /**
  * @param InstalledPackage $package
  * @throws \Exception
  */
 public function remove(InstalledPackage $package)
 {
     $this->load();
     foreach ($this->packages as $key => $installedPackage) {
         if ($installedPackage->getName() === $package->getName()) {
             array_splice($this->packages, $key, 1);
             $this->hasChanges = true;
             return;
         }
     }
     throw new \Exception(sprintf('Package: "%s" not found', $package->getName()));
 }