Example #1
0
 public function addToPackage(PackageInterface $package)
 {
     $this->package = $package;
     if ($package->hasProduct()) {
         $package->addProduct($this);
     }
     return $this;
 }
Example #2
0
 public function addPackage(PackageInterface $package)
 {
     $this->packages[$package->getId()] = $package;
     return $this;
 }