Ejemplo n.º 1
0
 /**
  * Adds all objects-data pairs from a different storage in the current storage.
  *
  * @param ObjectStorage $objectStorage
  * @return void
  */
 public function addAll(ObjectStorage $objectStorage)
 {
     foreach ($objectStorage as $object) {
         $this->attach($object, $objectStorage->getInfo());
     }
 }