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