Просмотр исходного кода

OrderShopSolver : ajout méthode isEmpty()

packProduct
Guillaume 2 лет назад
Родитель
Сommit
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());

Загрузка…
Отмена
Сохранить