protected function getGroup(array $queryParts)
    {
        if (isset($queryParts['group'])) {
            $group = [];

            foreach ($queryParts['group'] as $column) {
                $group[] = $this->quoteIdentifier($column);
            }

            return 'GROUP BY ' . implode(', ', $group);
        }

        return null;
    }
protected function getGroup(array $queryParts)
    {
        if (isset($queryParts['group'])) {
            $group = [];

            foreach ($queryParts['group'] as $column) {
                $group[] = $this->quoteIdentifier($column);
            }

            return 'GROUP BY ' . implode(', ', $group);
        }

        return null;
    }
protected function getGroup ( array $ queryParts ) { if ( isset ( $ queryParts [ 'group' ] ) ) { $ group = [ ] ; foreach ( $ queryParts [ 'group' ] as $ column ) { $ group [ ] = $ this -> quoteIdentifier ( $ column ) ; } return 'GROUP BY ' . implode ( ', ' , $ group ) ; } return null ; }
Prepare the group for use in the MySQL query.
@param  array $queryParts
@return null|string
Prepare the group for use in the MySQL query .