Browse Source

OrderShopSolver : ajout méthode isEmpty()

packProduct
Guillaume 2 years ago
parent
commit
9d9a85681a
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      Solver/Order/OrderShopSolver.php

+ 5
- 0
Solver/Order/OrderShopSolver.php View File

@@ -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…
Cancel
Save