Sfoglia il codice sorgente

OrderShopSolver : ajout méthode isEmpty()

packProduct
Guillaume 2 anni fa
parent
commit
9d9a85681a
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. +5
    -0
      Solver/Order/OrderShopSolver.php

+ 5
- 0
Solver/Order/OrderShopSolver.php Vedi 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…
Annulla
Salva