public function handle(UpdateCouponCommand $command) { $couponDTO = $command->getCouponDTO(); $coupon = $this->couponService->findOneById($couponDTO->id); CouponDTOBuilder::setFromDTO($coupon, $couponDTO); $this->couponService->update($coupon); }
public function getCouponDTO() { return $this->couponDTOBuilder->build(); }