瀏覽代碼

OrderShopSolver : ajout méthode isEmpty()

packProduct
Guillaume 2 年之前
父節點
當前提交
9d9a85681a
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. +5
    -0
      Solver/Order/OrderShopSolver.php

+ 5
- 0
Solver/Order/OrderShopSolver.php 查看文件

@@ -42,6 +42,11 @@ class OrderShopSolver
];
}

public function isEmpty(OrderShopInterface $orderShop): bool
{
return $orderShop->getOrderProducts()->isEmpty();
}

public function countQuantities(OrderShopInterface $orderShop): int
{
return $this->countQuantitiesByOrderProducts($orderShop->getOrderProducts());

Loading…
取消
儲存