ConfigFile   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 30
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A record() 0 5 1
A getPath() 0 4 1
A getType() 0 4 1
1
<?php declare(strict_types = 1);
2
3
namespace TomCizek\SymfonyInteropContainer\Tests\Configurators;
4
5
class ConfigFile
6
{
7
	/** @var string */
8
	private $path;
9
10
	/** @var string */
11
	private $type;
12
13
	private function __construct(string $path, string $type)
14
	{
15
		$this->path = $path;
16
		$this->type = $type;
17
	}
18
19
	public static function record(string $path, string $type)
20
	{
21
		return new self($path, $type);
22
23
	}
24
25
	public function getPath(): string
26
	{
27
		return $this->path;
28
	}
29
30
	public function getType(): string
31
	{
32
		return $this->type;
33
	}
34
}
35