roleAllow(UserRole::NORMAL_ADMIN); } protected function getParam(): IParam { return $this->param; } protected function run(Request $request): JsonResponse { $param = $this->param; $parking = Arr::first(API::getParkings([ API::CONDITION_PARKING_MANAGEMENT_CODDE => $param->parkingManagementCode ])); if ($parking === null) { throw new AppCommonException("駐車場情報取得不正"); } return $this->successResponse($parking); } }