VirtualPackage::getPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 1
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * VirtualPackage.php
4
 *
5
 * @copyright      More in license.md
6
 * @license        https://www.ipublikuj.eu
7
 * @author         Adam Kadlec <[email protected]>
8
 * @package        iPublikuj:Packages!
9
 * @subpackage     Entities
10
 * @since          2.0.0
11
 *
12
 * @date           21.06.16
13
 */
14
15
declare(strict_types = 1);
16
17
namespace IPub\Packages\Entities;
18
19
/**
20
 * Virtual package entity
21
 *
22
 * @package        iPublikuj:Packages!
23
 * @subpackage     Entities
24
 *
25
 * @author         Adam Kadlec <[email protected]>
26
 *
27
 * @property string $name
28
 */
29 1
final class VirtualPackage extends Package
30
{
31
	/**
32
	 * @var string
33
	 */
34
	private $path;
35
36
	/**
37
	 * @param mixed[] $composerData
38
	 * @param string $path
39
	 */
40
	public function __construct(array $composerData, string $path)
41
	{
42 1
		parent::__construct($composerData);
43
44 1
		$this->path = $path;
45 1
	}
46
47
	/**
48
	 * {@inheritdoc}
49
	 */
50
	public function getPath() : string
51
	{
52
		return $this->path;
53
	}
54
}
55