public function rollBack() { if ($this->transactionCount < 1) { return; } $transaction = $this->unprepared('ROLLBACK;'); if ($transaction) { $this->transactionCount--; } }