TestFixtureFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A newInstance() 0 3 1
A newConnection() 0 6 1
1
<?php
2
3
namespace Tests\Queryr\EntityStore\Fixtures;
4
5
use Doctrine\DBAL\DriverManager;
6
7
class TestFixtureFactory {
8
9
	public static function newInstance() {
10
		return new self();
11
	}
12
13
	public function newConnection() {
14
		return DriverManager::getConnection( array(
15
			'driver' => 'pdo_sqlite',
16
			'memory' => true,
17
		) );
18
	}
19
20
}