/** * @return static */ public function withAttributeValues() { foreach ($this->entity->getAttributeValues() as $attributeValue) { $this->entityDTO->attributeValues[] = $this->dtoBuilderFactory->getAttributeValueDTOBuilder($attributeValue)->build(); } return $this; }
/** * @return static */ public function withAttributeValue() { $this->entityDTO->attributeValue = $this->dtoBuilderFactory->getAttributeValueDTOBuilder($this->entity->getAttributeValue())->build(); return $this; }