Passed
Pull Request — 2.x (#222)
by
unknown
15:52
created

ConnectionConfig   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 3 1
A formatExceptionMessage() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of Cycle Database package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace Cycle\Database\Config\SQLite;
13
14
use Cycle\Database\Config\PDOConnectionConfig;
15
16
abstract class ConnectionConfig extends PDOConnectionConfig
17
{
18
    public function __construct(
19
        array $options = [],
20
    ) {
21 26
        parent::__construct(null, null, $options);
22
    }
23
24 26
    public function getName(): string
25 26
    {
26
        return 'sqlite';
27
    }
28
29
    public function formatExceptionMessage(string $message): string
30 8
    {
31
        return $message;
32 8
    }
33
}
34