'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([]); } }