<?php

namespace App\Http\Controllers\Announcements;

use App\Classes\Modules\Announcements\ControllersLogic\AssignAnnouncementToSegmentLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class AssignAnnouncementToSegmentController
{
    /**
     * @param Request $request
     * @param AssignCompanyToSegmentLogic $logic
     * @return JsonResponse
     */
    public function assign(Request $request, AssignAnnouncementToSegmentLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}