/** * @return static */ public function withPrice(PricingInterface $pricing) { $this->entityDTO->price = $this->dtoBuilderFactory->getPriceDTOBuilder($this->entity->getPrice($pricing))->withAllData()->build(); return $this; }