get("user_id"); if ($params->exists(["end_time", "record_id"]) == false) { respondStatus(400, "Missing parameter"); } updateEndRecord($user_id, $params); } } $branch = new EndRecordBranch(); $branch->execute();