Pārlūkot izejas kodu

OrderShopSolver : ajout méthode isEmpty()

packProduct
Guillaume pirms 2 gadiem
vecāks
revīzija
9d9a85681a
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. +5
    -0
      Solver/Order/OrderShopSolver.php

+ 5
- 0
Solver/Order/OrderShopSolver.php Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt