code: public function merge(Margin $margin): void
      {
          $this->purchaseCost += $margin->getPurchaseCost();
          $this->sellingPrice += $margin->getSellingPrice();
          $this->average = $this->average || $margin->isAverage();
      }
docs: Merges the given margin.
  
  @param Margin $margin