Переглянути джерело

OrderShopSolver : ajout méthode isEmpty()

packProduct
Guillaume 2 роки тому
джерело
коміт
9d9a85681a
1 змінених файлів з 5 додано та 0 видалено
  1. +5
    -0
      Solver/Order/OrderShopSolver.php

+ 5
- 0
Solver/Order/OrderShopSolver.php Переглянути файл

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

Завантаження…
Відмінити
Зберегти