/** * @return DBTransaction **/ public function setDB(DB $db) { if ($this->isStarted()) { throw new WrongStateException('transaction already started, can not switch to another db'); } return parent::setDB($db); }
public function __construct(DB $db) { parent::__construct($db); $this->queue = new Queue(); }