Passed
Push — master ( 229462...d74785 )
by Andreas
02:20 queued 14s
created

NoConnectionLoader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConnection() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Migrations\Configuration\Connection\Loader;
6
7
use Doctrine\DBAL\Connection;
8
use Doctrine\Migrations\Configuration\Connection\ConnectionLoader;
9
use Doctrine\Migrations\Tools\Console\Exception\ConnectionNotSpecified;
10
11
/**
12
 * @internal
13
 */
14
final class NoConnectionLoader implements ConnectionLoader
15
{
16 5
    public function getConnection() : Connection
17
    {
18 5
        throw ConnectionNotSpecified::new();
19
    }
20
}
21