public function handle(UpdateTagCommand $command) { $tagDTO = $command->getTagDTO(); $tag = $this->tagService->findOneById($tagDTO->id); TagDTOBuilder::setFromDTO($tag, $tagDTO); $this->tagService->update($tag); }
public function handle(CreateTagCommand $command) { $tag = TagDTOBuilder::createFromDTO($command->getTagId(), $command->getTagDTO()); $this->tagService->create($tag); }
public function getTagDTOWithAllData() { return $this->tagDTOBuilder->withAllData($this->pricing)->build(); }