Преглед изворни кода

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

Loading…
Откажи
Сачувај