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