Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 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
}