public function quoteIdentifier(string $identifier): string
    {
        // switch statement for DB type
        switch ($this->connect['type']) {
            case 'mysql':
                return '`' . str_replace('`', '``', $identifier) . '`';
            case 'postgresql':
            case 'sqlite':
            default:
                return '"' . str_replace('"', '\\' . '"', $identifier) . '"';
        }
    }
public function quoteIdentifier(string $identifier): string
    {
        // switch statement for DB type
        switch ($this->connect['type']) {
            case 'mysql':
                return '`' . str_replace('`', '``', $identifier) . '`';
            case 'postgresql':
            case 'sqlite':
            default:
                return '"' . str_replace('"', '\\' . '"', $identifier) . '"';
        }
    }
public function quoteIdentifier ( string $ identifier ) : string { // switch statement for DB type switch ( $ this -> connect [ 'type' ] ) { case 'mysql' : return '`' . str_replace ( '`' , '``' , $ identifier ) . '`' ; case 'postgresql' : case 'sqlite' : default : return '"' . str_replace ( '"' , '\\' . '"' , $ identifier ) . '"' ; } }
Quote a string so it can be safely used as a table or column name

@param  string $identifier

@return string
Quote a string so it can be safely used as a table or column name