Files
exchange-2.0/app/Classes/Modules/Settings/ControllersLogic/FetchLockLogic.php
T

63 lines
1.7 KiB
PHP

<?php
namespace App\Classes\Modules\Settings\ControllersLogic;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Bookings\Services\FetchesBooking;
use App\Classes\Modules\Bookings\Standards\Rules\CanFetchBooking;
use App\Http\Resources\LockResource;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
class FetchLockLogic extends AbstractControllerLogic
{
/**
* @return array
*/
protected function notification():array {
return [
'title' => 'Retrieved Lock',
'message' => 'You have successfully retrieved a Lock'
];
}
// /** @var CanFetchBooking */
// private $canFetchBooking;
/** @var FetchesKeyValuePair */
private $fetchesKeyValuePair;
/**
* FetchLockLogic constructor.
* @param CanFetchBooking $canFetchBooking
* @param FetchesKeyValuePair $fetchesKeyValuePair
*/
public function __construct(CanFetchBooking $canFetchBooking, FetchesBooking $fetchesKeyValuePair)
{
// $this->canFetchBooking = $canFetchBooking;
$this->fetchesKeyValuePair = $fetchesKeyValuePair;
}
/**
* @param Request $request
* @return JsonResponse
* @throws \App\Classes\Exceptions\AccessForbiddenException
* @throws \App\Classes\Exceptions\RequestValidationException
*/
public function logic(Request $request) : JsonResponse
{
// cief todo: 110 - CanFetchLock
// $this->canFetchBooking->passes();
// $query = $this->fetchesKeyValuePair->execute(['marking' => $request->route('marking'), 'with_transactions' => true]);
// return $this->resourceResponse(new LockResource($query));
return $this->response([]);
}
}