/** * {@inheritdoc} */ public function getWeight(WeightableInterface $weightable) { /** @var GrossWeightableInterface $weightable */ return $weightable->getWeight() * $weightable->getQuantity(); }
/** * {@inheritdoc} */ public function getWeight(WeightableInterface $weightable) { /** @var DimensionalWeightableInterface $weightable */ return $weightable->getLength() * $weightable->getWidth() * $weightable->getHeight() / $this->dimDivider; }