You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ParamMPCGCBF.m
    path of file: ./repos/NMPC-DCLF-DCBF/matlab/cdc2021
    
    the code of the file until where you have to start completion: classdef ParamMPCGCBF < handle
    properties
        horizon
        gamma
        P % weight for terminal cost (CLF)
        xWeight
 
    
function self = ParamMPCGCBF(horizon, gamma, P, x_weight, u_weight)
            self.horizon = horizon;
            self.gamma = gamma;
            self.P = P;
            self.xWeight = x_weight;
            self.uWeight = u_weight;
        end