Skip to content

Commit ba5b0ff

Browse files
committed
Rename getIsolationLevel() to getIsolation()
1 parent caaf64c commit ba5b0ff

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/Connection.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ interface Connection extends Link
1717
*/
1818
public function getConfig(): SqlConfig;
1919

20+
/**
21+
* @return TransactionIsolation Current transaction isolation used when beginning transactions on this connection.
22+
*/
23+
public function getTransactionIsolation(): TransactionIsolation;
24+
2025
/**
2126
* Sets the transaction isolation level for transactions began on this link.
2227
*

src/Transaction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
interface Transaction extends Link
1313
{
14-
public function getIsolationLevel(): TransactionIsolation;
14+
public function getIsolation(): TransactionIsolation;
1515

1616
/**
1717
* @return bool True if the transaction is active, false if it has been committed or rolled back.

0 commit comments

Comments
 (0)