Cake\Database\Expression\ValuesExpression::columns PHP Method

columns() public method

Sets the columns to be inserted. If no params are passed, then it returns the currently stored columns
public columns ( array | null $cols = null ) : array | $this
$cols array | null arrays with columns to be inserted
return array | $this
    public function columns($cols = null)
    {
        if ($cols === null) {
            return $this->_columns;
        }
        $this->_columns = $cols;
        $this->_castedExpressions = false;
        return $this;
    }