DibiConnectionProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConnection() 0 3 1
A __construct() 0 3 1
1
<?php
2
namespace SpareParts\Pillar\Adapter\Dibi;
3
4
use SpareParts\Pillar\Assistant\Dibi\IConnectionProvider;
5
6
class DibiConnectionProvider implements IConnectionProvider
7
{
8
	/**
9
	 * @var \Dibi\Connection
10
	 */
11
	private $connection;
12
13 6
	public function __construct(\Dibi\Connection $connection)
14
	{
15 6
		$this->connection = $connection;
16 6
	}
17
18 6
	public function getConnection()
19
	{
20 6
		return $this->connection;
21
	}
22
}
23