/** * @return static */ public function withTextOptions() { foreach ($this->entity->getTextOptions() as $textOption) { $this->entityDTO->textOptions[] = $this->dtoBuilderFactory->getTextOptionDTOBuilder($textOption)->build(); } return $this; }
/** * @return static */ public function withTextOption() { $this->entityDTO->textOption = $this->dtoBuilderFactory->getTextOptionDTOBuilder($this->entity->getTextOption())->build(); return $this; }