src/propertyStorage/EAV.php
public static function dataTypeToEavColumn($type)
    {
        switch ($type) {
            case Property::DATA_TYPE_FLOAT:
                return 'value_float';
                break;

            case Property::DATA_TYPE_BOOLEAN:
            case Property::DATA_TYPE_INTEGER:
                return 'value_integer';
                break;

            case Property::DATA_TYPE_TEXT:
            case Property::DATA_TYPE_PACKED_JSON:
            case Property::DATA_TYPE_INVARIANT_STRING:
                return 'value_text';
                break;

            case Property::DATA_TYPE_STRING:
            default:
                return 'value_string';
                break;
        }
    }
public static function dataTypeToEavColumn($type)
    {
        switch ($type) {
            case Property::DATA_TYPE_FLOAT:
                return 'value_float';
                break;

            case Property::DATA_TYPE_BOOLEAN:
            case Property::DATA_TYPE_INTEGER:
                return 'value_integer';
                break;

            case Property::DATA_TYPE_TEXT:
            case Property::DATA_TYPE_PACKED_JSON:
            case Property::DATA_TYPE_INVARIANT_STRING:
                return 'value_text';
                break;

            case Property::DATA_TYPE_STRING:
            default:
                return 'value_string';
                break;
        }
    }
public static function dataTypeToEavColumn ( $ type ) { switch ( $ type ) { case Property :: DATA_TYPE_FLOAT : return 'value_float' ; break ; case Property :: DATA_TYPE_BOOLEAN : case Property :: DATA_TYPE_INTEGER : return 'value_integer' ; break ; case Property :: DATA_TYPE_TEXT : case Property :: DATA_TYPE_PACKED_JSON : case Property :: DATA_TYPE_INVARIANT_STRING : return 'value_text' ; break ; case Property :: DATA_TYPE_STRING : default : return 'value_string' ; break ; } }
Returns EAV column by property data type.

@param integer $type

@return string
Returns EAV column by property data type .