Common/Calculator/Margin.php
public function merge(Margin $margin): void
    {
        $this->purchaseCost += $margin->getPurchaseCost();
        $this->sellingPrice += $margin->getSellingPrice();
        $this->average = $this->average || $margin->isAverage();
    }
public function merge(Margin $margin): void
    {
        $this->purchaseCost += $margin->getPurchaseCost();
        $this->sellingPrice += $margin->getSellingPrice();
        $this->average = $this->average || $margin->isAverage();
    }
Merges the given margin.

@param Margin $margin