<?php

namespace App\Http\Controllers\Contacts;


use App\Classes\Constants;
use App\Modules\ControllerLogic\Contacts\UpdateContactLogic;
use Illuminate\Http\Request;

class UpdateContactController
{
    public function update(string $type, string $referenceId, int $id, Request $request, UpdateContactLogic $logic){

        return $logic->execute($id,$referenceId, Constants::MODULE_TYPES[$type], $request);
    }

}