<?php

namespace App\Http\Controllers\Contacts;

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

class CreateContactController
{
    public function create(string $type, int $referencesId, Request $request, CreateContactLogic $logic){

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

}