You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UnitSolver.php 296B

1234567891011121314151617
  1. <?php
  2. namespace Lc\CaracoleBundle\Solver\Config;
  3. use Lc\CaracoleBundle\Model\Config\UnitInterface;
  4. class UnitSolver
  5. {
  6. public function getWeight(UnitInterface $unit, int $quantityProduct, int $quantity){
  7. return ($quantityProduct / $unit->getCoefficient()) * $quantity;
  8. }
  9. }