public function into($columns)
    {
        //if columns count does not match values count, throw an error.

        $valuesCount = count($this->values);
        $colStringCount = 0;
        if (is_string($columns)) {
            try {
                $colStringCount = count(
                    explode(',', $columns)
                );
            } catch (Exception $e) {

                static::$response["status"] = "error";
                static::$response["response"] = "Unrecognized characters. Please refer to documentation on how to insert a record";
                static::$response["code"] = 4001;
               return static::terminate(static::$response);

            }
        }

        if (func_num_args() > 1 && func_num_args() == $valuesCount) {
            $this->columns = $this->columnize(func_get_args());
        } else if (is_array($columns) && count($columns) == $valuesCount) {
            $this->columns = $this->columnize($columns);
        } else if ($colStringCount == $valuesCount) {
            $this->columns = $columns;
        } else {
            static::$response["status"] = "error";
            static::$response["response"] = "Columns count does not equal the values count";
            static::$response['code'] = 4005;
           return static::terminate(static::$response);
        }


        return $this->doInsert();
    }
public function into($columns)
    {
        //if columns count does not match values count, throw an error.

        $valuesCount = count($this->values);
        $colStringCount = 0;
        if (is_string($columns)) {
            try {
                $colStringCount = count(
                    explode(',', $columns)
                );
            } catch (Exception $e) {

                static::$response["status"] = "error";
                static::$response["response"] = "Unrecognized characters. Please refer to documentation on how to insert a record";
                static::$response["code"] = 4001;
               return static::terminate(static::$response);

            }
        }

        if (func_num_args() > 1 && func_num_args() == $valuesCount) {
            $this->columns = $this->columnize(func_get_args());
        } else if (is_array($columns) && count($columns) == $valuesCount) {
            $this->columns = $this->columnize($columns);
        } else if ($colStringCount == $valuesCount) {
            $this->columns = $columns;
        } else {
            static::$response["status"] = "error";
            static::$response["response"] = "Columns count does not equal the values count";
            static::$response['code'] = 4005;
           return static::terminate(static::$response);
        }


        return $this->doInsert();
    }
public function into ( $ columns ) { //if columns count does not match values count, throw an error. $ valuesCount = count ( $ this -> values ) ; $ colStringCount = 0 ; if ( is_string ( $ columns ) ) { try { $ colStringCount = count ( explode ( ',' , $ columns ) ) ; } catch ( Exception $ e ) { static :: $ response [ "status" ] = "error" ; static :: $ response [ "response" ] = "Unrecognized characters. Please refer to documentation on how to insert a record" ; static :: $ response [ "code" ] = 4001 ; return static :: terminate ( static :: $ response ) ; } } if ( func_num_args ( ) > 1 && func_num_args ( ) == $ valuesCount ) { $ this -> columns = $ this -> columnize ( func_get_args ( ) ) ; } else if ( is_array ( $ columns ) && count ( $ columns ) == $ valuesCount ) { $ this -> columns = $ this -> columnize ( $ columns ) ; } else if ( $ colStringCount == $ valuesCount ) { $ this -> columns = $ columns ; } else { static :: $ response [ "status" ] = "error" ; static :: $ response [ "response" ] = "Columns count does not equal the values count" ; static :: $ response [ 'code' ] = 4005 ; return static :: terminate ( static :: $ response ) ; } return $ this -> doInsert ( ) ; }
Sets the column to which the values will be inserted
@param $columns
@return string
Sets the column to which the values will be inserted