Ejemplo n.º 1
0
 /**
  * @param PricingInterface $pricing
  * @return static
  */
 public function withOptionProducts(PricingInterface $pricing)
 {
     foreach ($this->entity->getOptionProducts() as $optionProduct) {
         $this->entityDTO->optionProducts[] = $this->dtoBuilderFactory->getOptionProductDTOBuilder($optionProduct)->withProduct($pricing)->build();
     }
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * @return static
  */
 public function withOptionProducts()
 {
     foreach ($this->entity->getOptionProducts() as $optionProduct) {
         $this->entityDTO->optionProducts[] = $this->dtoBuilderFactory->getOptionProductDTOBuilder($optionProduct)->withOption()->build();
     }
     return $this;
 }
 /**
  * @return static
  */
 public function withOptionProduct(PricingInterface $pricing)
 {
     $this->entityDTO->optionProduct = $this->dtoBuilderFactory->getOptionProductDTOBuilder($this->entity->getOptionProduct())->withOption()->withProduct($pricing)->build();
     return $this;
 }
 /**
  * @return static
  */
 public function withOptionProduct()
 {
     $this->entityDTO->optionProduct = $this->dtoBuilderFactory->getOptionProductDTOBuilder($this->entity->getOptionProduct())->withOption()->build();
     return $this;
 }