/** * @return static */ public function withImages() { foreach ($this->entity->getImages() as $image) { $this->entityDTO->images[] = $this->dtoBuilderFactory->getImageDTOBuilder($image)->build(); } return $this; }