コード例 #1
0
ファイル: Shipment.php プロジェクト: ekyna/commerce
 /**
  * @inheritdoc
  */
 public function removeItem(ShipmentItemInterface $item)
 {
     if ($this->hasItem($item)) {
         $item->setShipment(null);
         $this->items->removeElement($item);
     }
     return $this;
 }
コード例 #2
0
ファイル: Shipment.php プロジェクト: sidibea/Sylius
 /**
  * {@inheritdoc}
  */
 public function getShippingItemCount()
 {
     return $this->items->count();
 }