public function addPackage(PackageInterface $package) { $this->packages[$package->getName()] = $package; }