| Total Complexity | 1 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class Transaction extends AbstractPdoTransaction |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Sets the isolation level of the current transaction. |
||
| 20 | * |
||
| 21 | * @param string $level The transaction isolation level to use for this transaction. |
||
| 22 | * |
||
| 23 | * @see \Yiisoft\Db\Transaction\TransactionInterface::READ_UNCOMMITTED |
||
| 24 | * @see \Yiisoft\Db\Transaction\TransactionInterface::SERIALIZABLE |
||
| 25 | * |
||
| 26 | * @throws Exception |
||
| 27 | * @throws InvalidConfigException |
||
| 28 | * @throws NotSupportedException |
||
| 29 | * @throws Throwable When unsupported isolation levels are used. SQLite only supports `SERIALIZABLE` |
||
| 30 | * and `READ UNCOMMITTED`. |
||
| 31 | * |
||
| 32 | * @link https://www.sqlite.org/pragma.html#pragma_read_uncommitted |
||
| 33 | */ |
||
| 34 | 4 | protected function setTransactionIsolationLevel(string $level): void |
|
| 45 |