Exemple #1
0
 /**
  * @inheritdoc
  */
 public function removeItem(ShipmentItemInterface $item)
 {
     if ($this->hasItem($item)) {
         $item->setShipment(null);
         $this->items->removeElement($item);
     }
     return $this;
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  */
 public function getShippingItemCount()
 {
     return $this->items->count();
 }