public static function fromSymbolKind(int $kind): int
    {
        switch ($kind) {
            case SymbolKind::PROPERTY:
            case SymbolKind::FIELD:
                return self::PROPERTY;
            case SymbolKind::METHOD:
                return self::METHOD;
            case SymbolKind::CLASS_:
                return self::CLASS_;
            case SymbolKind::INTERFACE:
                return self::INTERFACE;
            case SymbolKind::FUNCTION:
                return self::FUNCTION;
            case SymbolKind::NAMESPACE:
            case SymbolKind::MODULE:
            case SymbolKind::PACKAGE:
                return self::MODULE;
            case SymbolKind::FILE:
                return self::FILE;
            case SymbolKind::STRING:
                return self::TEXT;
            case SymbolKind::NUMBER:
            case SymbolKind::BOOLEAN:
            case SymbolKind::ARRAY:
                return self::VALUE;
            case SymbolKind::ENUM:
                return self::ENUM;
            case SymbolKind::CONSTRUCTOR:
                return self::CONSTRUCTOR;
            case SymbolKind::VARIABLE:
            case SymbolKind::CONSTANT:
                return self::VARIABLE;
        }
    }
public static function fromSymbolKind(int $kind): int
    {
        switch ($kind) {
            case SymbolKind::PROPERTY:
            case SymbolKind::FIELD:
                return self::PROPERTY;
            case SymbolKind::METHOD:
                return self::METHOD;
            case SymbolKind::CLASS_:
                return self::CLASS_;
            case SymbolKind::INTERFACE:
                return self::INTERFACE;
            case SymbolKind::FUNCTION:
                return self::FUNCTION;
            case SymbolKind::NAMESPACE:
            case SymbolKind::MODULE:
            case SymbolKind::PACKAGE:
                return self::MODULE;
            case SymbolKind::FILE:
                return self::FILE;
            case SymbolKind::STRING:
                return self::TEXT;
            case SymbolKind::NUMBER:
            case SymbolKind::BOOLEAN:
            case SymbolKind::ARRAY:
                return self::VALUE;
            case SymbolKind::ENUM:
                return self::ENUM;
            case SymbolKind::CONSTRUCTOR:
                return self::CONSTRUCTOR;
            case SymbolKind::VARIABLE:
            case SymbolKind::CONSTANT:
                return self::VARIABLE;
        }
    }
public static function fromSymbolKind ( int $ kind ) : int { switch ( $ kind ) { case SymbolKind :: PROPERTY : case SymbolKind :: FIELD : return self :: PROPERTY ; case SymbolKind :: METHOD : return self :: METHOD ; case SymbolKind :: CLASS_ : return self :: CLASS_ ; case SymbolKind :: INTERFACE : return self :: INTERFACE ; case SymbolKind :: FUNCTION : return self :: FUNCTION ; case SymbolKind :: NAMESPACE : case SymbolKind :: MODULE : case SymbolKind :: PACKAGE : return self :: MODULE ; case SymbolKind :: FILE : return self :: FILE ; case SymbolKind :: STRING : return self :: TEXT ; case SymbolKind :: NUMBER : case SymbolKind :: BOOLEAN : case SymbolKind :: ARRAY : return self :: VALUE ; case SymbolKind :: ENUM : return self :: ENUM ; case SymbolKind :: CONSTRUCTOR : return self :: CONSTRUCTOR ; case SymbolKind :: VARIABLE : case SymbolKind :: CONSTANT : return self :: VARIABLE ; } }
Returns the CompletionItemKind for a SymbolKind

@param int $kind A SymbolKind
@return int The CompletionItemKind
Returns the CompletionItemKind for a SymbolKind