Przeglądaj źródła

OrderShopSolver : ajout méthode isEmpty()

packProduct
Guillaume 2 lat temu
rodzic
commit
9d9a85681a
1 zmienionych plików z 5 dodań i 0 usunięć
  1. +5
    -0
      Solver/Order/OrderShopSolver.php

+ 5
- 0
Solver/Order/OrderShopSolver.php Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz