@param string      $column
@param string|null $type

@return $this
428482
public function orderBy(string $column, string $type = null)
    {
        $instance = $this->orderByStrategyInstance();

        $instance->orderByStrategy()->orderBy($column, $type);

        return $instance;
    }
297663
public function setType($type)
    {
        if ($type === null) {
            $type = self::TYPE_UNDEFINED;
        }

        $this->type = $type;

        return $this;
    }
116869
public static function alterColumn($operation, $table, $column, $type = null, $notNull = false, $default = null)
    {
        $query = static::getQuery();

        $column = $query->quoteName((array) $column);

        return static::build(
            'ALTER TABLE',
            $query->quoteName($table),
            $operation,
            implode(' TO ', $column),
            $type,
            $notNull ? 'NOT NULL' : null,
            !is_null($default) ? 'SET DEFAULT ' . $query->quote($default) : null
        );
    }
869293
public function havingIs(string $column)
    {
        $instance = $this->havingStrategyInstance();

        $instance->havingStrategy()->havingIs($column);

        return $instance;
    }
556545
public function setCol($col = null)
    {
        if ($col !== null) {
            $this->otherOptions['col'] = $col;
        } else {
            unset($this->otherOptions['col']);
        }

        return $this;
    }
416464
public function orHavingIs(string $column)
    {
        $instance = $this->havingStrategyInstance();

        $instance->havingStrategy()->orHavingIs($column);

        return $instance;
    }
331698
public function column($column, $type = 'string', $length = 255)
    {
        $this->builder->setDiscriminatorColumn($column, $type, $length);

        return $this;
    }
43887
public function column($column = null)
	{
		if($column !== null)
		{
			$this->select([$column]);
		}

		$query = $this->limit(1)->compiler->select();

		return $this->connection->column($query['sql'], $query['params']);
	}
343317
public function whereIsNull(string $column)
    {
        $instance = $this->whereStrategyInstance();

        $instance->whereStrategy()->whereIsNull($column);

        return $instance;
    }
326707
public function type($type = null)
    {
        if (!func_num_args()) {
            return $this->_type;
        }
        $this->_type = $type;
        return $this;
    }
432547
public function addColumn( $table, $column, $type) {
		$column = $this->check($column);
		$table = $this->check($table);
		$type=$this->typeno_sqltype[$type];
		$sql = "ALTER TABLE `$table` ADD `$column` $type ";
		$this->adapter->exec( $sql );
	}
1093874
public function orWhereIsNot(string $column)
    {
        $instance = $this->whereStrategyInstance();

        $instance->whereStrategy()->orWhereIsNot($column);

        return $instance;
    }
1022913
public function orderBy($column, $orderType = 'ASC')
    {
        if (empty($column) || is_null($column)) {
            throw new \Exception('Empty parameter given to order by clause');
        }
        $this->orderType = $orderType;

        if (is_array($column)) {
            $this->columnName = $this->extractArrayAttributes($column);

            return $this;
        }

        if (is_null($this->columnName)) {
            $this->columnName = $column;
        }

        return $this;
    }
748698
public function min(string $column, string $alias = null)
    {
        $this->columnRaw($this->dialect()->min($column, $alias));

        return $this;
    }
1020910
public function setType(Type $type = null)
    {
        if ($this->type !== $type) {
            $this->type = $type;
        }

        return $this;
    }
214692
public function orderBy($col = 'id', $type='asc')
    {
        try {
            if (!is_null($this->query)) {
                $this->query .= ' ORDER BY '.$col. ' '.$type;
                return $this;
            }

        } catch (\Exception $exception) {
            var_dump($exception->getMessage());
        }
    }
465155
public function groupBy(string $column)
    {
        $this->addGroupBy($this->dialect()->quoteName($column));

        return $this;
    }