<?php

namespace App\Http\Controllers\Orders;

use App\Classes\Modules\ControllersLogic\Orders\CreateOrderLogic;
use Illuminate\Http\Request;

class CreateOrderController
{

    /**
     * @param int $companyId
     * @param Request $request
     * @param CreateOrderLogic $logic
     * @return \App\Models\Order|null
     * @throws \App\Classes\Modules\ControllerLogic\Exceptions\InternalServerErrorException
     */
    public function create(int $companyId, Request $request, CreateOrderLogic $logic){
        return $logic->execute($companyId, $request);
    }
}