浏览代码

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());

正在加载...
取消
保存