ContainerFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 7 1
1
<?php
2
3
namespace Symnedi\Validator\Tests;
4
5
use Nette\Configurator;
6
use Nette\DI\Container;
7
8
9
class ContainerFactory
10
{
11
12
	/**
13
	 * @return Container
14
	 */
15
	public function create()
16
	{
17
		$configurator = new Configurator;
18
		$configurator->setTempDirectory(TEMP_DIR);
19
		$configurator->addConfig(__DIR__ . '/config/default.neon');
20
		return $configurator->createContainer();
21
	}
22
23
}
24