public static function getVariableType(string $name): string
    {
        self::loadData();
        $kbEntry = self::getVariable($name);
        if (isset($kbEntry->t)) {
            return Search::$data->varTypes->{$kbEntry->t};
        } else {
            throw new KBException("$name does have a known type !");
        }
    }
public static function getVariableType(string $name): string
    {
        self::loadData();
        $kbEntry = self::getVariable($name);
        if (isset($kbEntry->t)) {
            return Search::$data->varTypes->{$kbEntry->t};
        } else {
            throw new KBException("$name does have a known type !");
        }
    }
public static function getVariableType ( string $ name ) : string { self :: loadData ( ) ; $ kbEntry = self :: getVariable ( $ name ) ; if ( isset ( $ kbEntry -> t ) ) { return Search :: $ data -> varTypes -> { $ kbEntry -> t } ; } else { throw new KBException ( "$name does have a known type !" ) ; } }
get the type of the variable

@param string $name Name of variable
@return string
@throws KBException
get the type of the variable