/** * @param \Generated\Shared\Transfer\PriceProductTransfer $priceProductTransfer * * @return \Generated\Shared\Transfer\PriceProductTransfer */ protected function setPriceType(PriceProductTransfer $priceProductTransfer) { if ($priceProductTransfer->getPriceTypeName() === null) { $priceProductTransfer->setPriceTypeName($this->priceConfig->getPriceTypeDefaultName()); } return $priceProductTransfer; }
/** * @param string|null $priceType * * @return \Orm\Zed\Price\Persistence\SpyPriceType */ protected function handleDefaultPriceType($priceType = null) { if ($priceType === null) { $priceType = $this->priceConfig->getPriceTypeDefaultName(); } return $priceType; }
/** * @return void */ protected function createPriceType() { $this->writer->createPriceType($this->config->getPriceTypeDefaultName()); }