protected function processSelect($select, $context)
    {
        if ($select instanceof Aggregate) {
            $column = $this->processColumnOrSubQuery($select->column, $context);
            if ($column === $select->column) {
                return $select;
            } else {
                return new Aggregate($select->function, $column);
            }
        }

        return $this->processColumnOrSubQuery($select, $context);
    }
protected function processSelect($select, $context)
    {
        if ($select instanceof Aggregate) {
            $column = $this->processColumnOrSubQuery($select->column, $context);
            if ($column === $select->column) {
                return $select;
            } else {
                return new Aggregate($select->function, $column);
            }
        }

        return $this->processColumnOrSubQuery($select, $context);
    }
protected function processSelect ( $ select , $ context ) { if ( $ select instanceof Aggregate ) { $ column = $ this -> processColumnOrSubQuery ( $ select -> column , $ context ) ; if ( $ column === $ select -> column ) { return $ select ; } else { return new Aggregate ( $ select -> function , $ column ) ; } } return $ this -> processColumnOrSubQuery ( $ select , $ context ) ; }
Processes a single select column.

@param string|Aggregate|Query|StatementInterface $select
@param mixed $context The processing context
@return string|Aggregate|Query|StatementInterface
Processes a single select column .