Explorar el Código

OrderShopSolver : ajout méthode isEmpty()

packProduct
Guillaume hace 2 años
padre
commit
9d9a85681a
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. +5
    -0
      Solver/Order/OrderShopSolver.php

+ 5
- 0
Solver/Order/OrderShopSolver.php Ver fichero

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

Cargando…
Cancelar
Guardar