Beispiel #1
0
 /**
  * Adds a package object.
  * 
  * @param PackageInterface $package Package object.
  * @return $this
  */
 public function add(PackageInterface $package)
 {
     $this->packages[$package->getType()][$package->getId()] = $package;
     return $this;
 }