Passed
Push — master ( ad8719...8e7dfc )
by Koldo
02:19
created

ConfigProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 22
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Antidot\Persistence\DBAL\Container\Config;
6
7
use Antidot\Persistence\DBAL\Container\DBALConnectionFactory;
8
use Doctrine\DBAL\Connection;
9
10
class ConfigProvider
11
{
12
    public const DEFAULT_CONFIG = [
13
        'factories' => [
14
            Connection::class => DBALConnectionFactory::class,
15
        ],
16
        'dbal' => [
17
            'connections' => [
18
//                    'default' => [
19
//                        'url' => 'mysql://user:secret@localhost/mydb',
20
//                    ],
21
//                    'other'=> [
22
//                        'url' => 'mysql://user:secret@localhost/another_db',
23
//                    ],
24
            ]
25
        ],
26
    ];
27
28
29 1
    public function __invoke(): array
30
    {
31 1
        return self::DEFAULT_CONFIG;
32
    }
33
}
34