private function assertStarted() { if ($this->state !== self::OPENED) { throw new \RuntimeException('This transaction has not been started'); //$this->begin(); } }