public function rollback() { $this->assertNotClosed(); $this->assertStarted(); $this->session->rollbackTransaction($this->transactionId); $this->closed = true; $this->state = self::ROLLED_BACK; $this->session->transaction = null; }