diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/OCI8/ExecutionMode.php')
| -rw-r--r-- | vendor/doctrine/dbal/src/Driver/OCI8/ExecutionMode.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Driver/OCI8/ExecutionMode.php b/vendor/doctrine/dbal/src/Driver/OCI8/ExecutionMode.php new file mode 100644 index 0000000..8efb936 --- /dev/null +++ b/vendor/doctrine/dbal/src/Driver/OCI8/ExecutionMode.php | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Driver\OCI8; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Encapsulates the execution mode that is shared between the connection and its statements. | ||
| 9 | * | ||
| 10 | * @internal This class is not covered by the backward compatibility promise | ||
| 11 | */ | ||
| 12 | final class ExecutionMode | ||
| 13 | { | ||
| 14 | private bool $isAutoCommitEnabled = true; | ||
| 15 | |||
| 16 | public function enableAutoCommit(): void | ||
| 17 | { | ||
| 18 | $this->isAutoCommitEnabled = true; | ||
| 19 | } | ||
| 20 | |||
| 21 | public function disableAutoCommit(): void | ||
| 22 | { | ||
| 23 | $this->isAutoCommitEnabled = false; | ||
| 24 | } | ||
| 25 | |||
| 26 | public function isAutoCommitEnabled(): bool | ||
| 27 | { | ||
| 28 | return $this->isAutoCommitEnabled; | ||
| 29 | } | ||
| 30 | } | ||
