src/SqlQueryBuilder.php
/**
     * @param string|array $fields
     * @param bool $override Whether to override the existing select fields.
     *  Defaults to false, which appends new select field to the previously selected 
     * @return SqlQueryBuilder
     */
@param string|array $fields
@param bool $override Whether to override the existing select fields.
Defaults to false, which appends new select field to the previously selected
@return SqlQueryBuilder
@param string|array $fields @param bool $override Whether to override the existing select fields . Defaults to false which appends new select field to the previously selected @return SqlQueryBuilder
public function select($fields, bool $override = false): self
    {
        if(is_string($fields)){
            $fields = explode(',', $fields);
        }
        if($override === true || $this->select == null){
            $this->select = $fields;
        } else {
            $this->select = array_merge($this->select, $fields);
        }
        return $this;
    }
public function select ( $ fields , bool $ override = false ) : self { if ( is_string ( $ fields ) ) { $ fields = explode ( ',' , $ fields ) ; } if ( $ override === true || $ this -> select == null ) { $ this -> select = $ fields ; } else { $ this -> select = array_merge ( $ this -> select , $ fields ) ; } return $ this ; }
@param string|array $fields
 @param bool $override Whether to override the existing select fields.
@param string|array $fields @param bool $override Whether to override the existing select fields .