<?php

namespace App\Http\Controllers\Companies;


use App\Classes\Modules\ControllersLogic\Companies\ListCompanyOrderLogic;

class CompanyOrderController
{

    /**
     * @param int $id
     * @param string $category
     * @param ListCompanyOrderLogic $logic
     * @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
     * @throws \App\Classes\Modules\ControllerLogic\Exceptions\InternalServerErrorException
     */
    public function list(int $id, string $category, ListCompanyOrderLogic $logic){
        return $logic->execute($id, $category);

    }

}