Lines 0.00% 0 / 9
Functions and Methods 0.00% 0 / 4
Classes and Traits 0.00% 0 / 1
Name Lines Functions and Methods CRAP Classes and Traits
SQLite 0.00% 0 / 9 0.00% 0 / 4 42 0.00% 0 / 1
 __construct 0.00% 0 / 3 0.00% 0 / 1 6
 runImport 0.00% 0 / 4 0.00% 0 / 1 6
 preImport 0.00% 0 / 1 0.00% 0 / 1 2
 postImport 0.00% 0 / 1 0.00% 0 / 1 2
1<?php
2
3/**
4 * @package ClientDLDB
5 * @copyright BerlinOnline Stadtportal GmbH & Co. KG
6 **/
7
8namespace BO\Zmsdldb\Importer;
9
10use BO\Zmsdldb\SQLiteAccess;
11use BO\Zmsdldb\FileAccess
12;
13
14class SQLite extends Base
15{
16    public function __construct(SQLiteAccess $sqLiteAccess, FileAccess $fileAccess, int $options = 0)
17    {
18        try {
19            parent::__construct($sqLiteAccess, $fileAccess, $options);
20        } catch (\Exception $e) {
21            throw $e;
22        }
23    }
24
25    #[\Override]
26    public function runImport(): void
27    {
28        try {
29            parent::runImport();
30        } catch (\Exception $e) {
31            $this->rollBack();
32            throw $e;
33        }
34    }
35    #[\Override]
36    public function preImport(): void
37    {
38        $this->beginTransaction();
39    }
40
41    #[\Override]
42    public function postImport(): void
43    {
44        $this->commit();
45    }
46}