public static function getVariable(string $name): stdClass
    {
        self::loadData();
        if (isset(Search::$data->vars->{$name})) {
            return Search::$data->vars->{$name};
        } else {
            throw new KBException("$name does not exist !");
        }
    }
public static function getVariable(string $name): stdClass
    {
        self::loadData();
        if (isset(Search::$data->vars->{$name})) {
            return Search::$data->vars->{$name};
        } else {
            throw new KBException("$name does not exist !");
        }
    }
public static function getVariable ( string $ name ) : stdClass { self :: loadData ( ) ; if ( isset ( Search :: $ data -> vars -> { $ name } ) ) { return Search :: $ data -> vars -> { $ name } ; } else { throw new KBException ( "$name does not exist !" ) ; } }
Get a variable

@param string $name Name of variable
@return stdClass
@throws KBException
Get a variable