summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Driver/OCI8/ExecutionMode.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2024-08-13 23:45:21 +0200
committerpolo <ordipolo@gmx.fr>2024-08-13 23:45:21 +0200
commitbf6655a534a6775d30cafa67bd801276bda1d98d (patch)
treec6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/doctrine/dbal/src/Driver/OCI8/ExecutionMode.php
parent94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff)
downloadAppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/OCI8/ExecutionMode.php')
-rw-r--r--vendor/doctrine/dbal/src/Driver/OCI8/ExecutionMode.php30
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
3declare(strict_types=1);
4
5namespace 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 */
12final 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}