ConfigFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
3
namespace FigTree\Config;
4
5
use FigTree\Config\Contracts\ConfigInterface;
6
use FigTree\Config\Contracts\ConfigFactoryInterface;
7
8
class ConfigFactory implements ConfigFactoryInterface
9
{
10
	/**
11
	 * Create a Config instance.
12
	 *
13
	 * @param array $paths
14
	 *
15
	 * @return \FigTree\Config\Contracts\ConfigInterface
16
	 */
17
	public function create(array $paths): ConfigInterface
18
	{
19
		return new Config($paths);
20
	}
21
}
22