Skip to content

Commit e5a1e5a

Browse files
committed
added state methods for the unmanaged transaction interface
1 parent c9fc067 commit e5a1e5a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Contracts/UnmanagedTransactionInterface.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,19 @@ public function commit(iterable $statements = []): CypherList;
4040
* Rolls back the transaction.
4141
*/
4242
public function rollback(): void;
43+
44+
/**
45+
* Returns whether the transaction has been rolled back.
46+
*/
47+
public function isRolledBack(): bool;
48+
49+
/**
50+
* Returns whether the transaction has been committed.
51+
*/
52+
public function isCommitted(): void;
53+
54+
/**
55+
* Returns whether the transaction is safe to use.
56+
*/
57+
public function isFinished(): void;
4358
}

0 commit comments

Comments
 (0)