public function columns($cols = null)
    {
        deprecationWarning(
            'ValuesExpression::columns() is deprecated. ' .
            'Use ValuesExpression::setColumns()/getColumns() instead.'
        );
        if ($cols !== null) {
            return $this->setColumns($cols);
        }

        return $this->getColumns();
    }
public function columns($cols = null)
    {
        deprecationWarning(
            'ValuesExpression::columns() is deprecated. ' .
            'Use ValuesExpression::setColumns()/getColumns() instead.'
        );
        if ($cols !== null) {
            return $this->setColumns($cols);
        }

        return $this->getColumns();
    }
public function columns ( $ cols = null ) { deprecationWarning ( 'ValuesExpression::columns() is deprecated. ' . 'Use ValuesExpression::setColumns()/getColumns() instead.' ) ; if ( $ cols !== null ) { return $ this -> setColumns ( $ cols ) ; } return $ this -> getColumns ( ) ; }
Sets the columns to be inserted. If no params are passed, then it returns
the currently stored columns.

@deprecated 3.4.0 Use setColumns()/getColumns() instead.
@param array|null $cols Array with columns to be inserted.
@return array|$this
Sets the columns to be inserted . If no params are passed then it returns the currently stored columns .