public function inferType($type)
    {
        if (DataTypes::isPrimitive($type)) {
            return $type;
        } elseif (DataTypes::COLLECTION === strtolower($type)) {
            return $type;
        }
        return DataTypes::STRING;
    }
public function inferType($type)
    {
        if (DataTypes::isPrimitive($type)) {
            return $type;
        } elseif (DataTypes::COLLECTION === strtolower($type)) {
            return $type;
        }
        return DataTypes::STRING;
    }
public function inferType ( $ type ) { if ( DataTypes :: isPrimitive ( $ type ) ) { return $ type ; } elseif ( DataTypes :: COLLECTION === strtolower ( $ type ) ) { return $ type ; } return DataTypes :: STRING ; }
Convert the type.

@param string $type The type name.

@return string
Convert the type .