ConfigFactory::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 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