<?php


namespace App\Http\Controllers\Transactions;

use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use App\Classes\Modules\Transactions\ControllersLogic\ListTransactionsLogic;


class ListTransactionsController
{
    /**
     * @param Request $request
     * @param ListTransactionsLogic $logic
     * @return JsonResponse
     */
    public function list(Request $request, ListTransactionsLogic $logic) : JsonResponse {
        return $logic->execute($request);
    }
}
