src/Query.php
public function addSelectionColumn($column, $alias = '', $special = '', $variable = '', $additional = ''): self
        {
            if (!$this->table instanceof Table) {
                throw new \Exception('You must set the from-table before adding selection columns');
            }

            $column = $this->getSelectionColumn($column);
            $alias = ($alias === '') ? str_replace('.', '_', $column) : $alias;

            $this->is_custom_selection = true;
            $this->addSelectionColumnRaw($column, $alias, $special, $variable, $additional);

            return $this;
        }
public function addSelectionColumn($column, $alias = '', $special = '', $variable = '', $additional = ''): self
        {
            if (!$this->table instanceof Table) {
                throw new \Exception('You must set the from-table before adding selection columns');
            }

            $column = $this->getSelectionColumn($column);
            $alias = ($alias === '') ? str_replace('.', '_', $column) : $alias;

            $this->is_custom_selection = true;
            $this->addSelectionColumnRaw($column, $alias, $special, $variable, $additional);

            return $this;
        }
public function addSelectionColumn ( $ column , $ alias = '' , $ special = '' , $ variable = '' , $ additional = '' ) : self { if ( ! $ this -> table instanceof Table ) { throw new \ Exception ( 'You must set the from-table before adding selection columns' ) ; } $ column = $ this -> getSelectionColumn ( $ column ) ; $ alias = ( $ alias === '' ) ? str_replace ( '.' , '_' , $ column ) : $ alias ; $ this -> is_custom_selection = true ; $ this -> addSelectionColumnRaw ( $ column , $ alias , $ special , $ variable , $ additional ) ; return $ this ; }
Add a column to select

@param string $column The column
@param string $alias [optional] An alias for the column
@param string $special [optional] Whether to use a special method on the column
@param string $variable [optional] An optional variable to assign it to
@param string $additional [optional] Additional parameter

@return Query
Add a column to select