ConfigFile::getPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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