private function incrementAction($column, $step = 1, $sign = '')
    {
        $sql = 'update `' . $this->table . '` set `'.$column.'` = `'.$column.'` '.$sign.' '.$step;

        if (!is_null($this->where)) {
            $sql .= ' ' . $this->where;

            $this->where = null;
        }

        $stmt = $this->connection->prepare($sql);

        $this->bind($stmt, $this->where_data_binding);

        $stmt->execute();

        return (int) $stmt->rowCount();
    }
private function incrementAction($column, $step = 1, $sign = '')
    {
        $sql = 'update `' . $this->table . '` set `'.$column.'` = `'.$column.'` '.$sign.' '.$step;

        if (!is_null($this->where)) {
            $sql .= ' ' . $this->where;

            $this->where = null;
        }

        $stmt = $this->connection->prepare($sql);

        $this->bind($stmt, $this->where_data_binding);

        $stmt->execute();

        return (int) $stmt->rowCount();
    }
private function incrementAction ( $ column , $ step = 1 , $ sign = '' ) { $ sql = 'update `' . $ this -> table . '` set `' . $ column . '` = `' . $ column . '` ' . $ sign . ' ' . $ step ; if ( ! is_null ( $ this -> where ) ) { $ sql .= ' ' . $ this -> where ; $ this -> where = null ; } $ stmt = $ this -> connection -> prepare ( $ sql ) ; $ this -> bind ( $ stmt , $ this -> where_data_binding ) ; $ stmt -> execute ( ) ; return ( int ) $ stmt -> rowCount ( ) ; }
Method to customize the increment and decrement methods

@param string $column
@param int    $step
@param string $sign

@return int
Method to customize the increment and decrement methods