purchasePriceGateway = $purchasePriceGateway; $this->rawMaterialGateway = $rawMaterialGateway; $this->documentPositionWrapper = $documentPositionWrapper; $this->documentService = $documentService; $this->documentGateway = $documentGateway; } /** * @param CopperSurchargeData $configData * * @return CopperSurchargeCalculator */ public function createCopperSurchargeCalculator(CopperSurchargeData $configData): CopperSurchargeCalculator { return new CopperSurchargeCalculator( $this->purchasePriceGateway, $this->rawMaterialGateway, $this->documentPositionWrapper, $this->documentService, $this->documentGateway, $configData ); } }