Passed
Push — master ( 6791f9...01e57e )
by Adam
02:08
created

VirtualPackage::getPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 1
cp 0
rs 10
cc 1
eloc 2
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 https://www.ipublikuj.eu
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 1
final class VirtualPackage extends Package
28
{
29
	/**
30
	 * @var string
31
	 */
32
	private $path;
33
34
	/**
35
	 * @param mixed[] $composerData
36
	 * @param string $path
37
	 */
38
	public function __construct(array $composerData, string $path)
39
	{
40 1
		parent::__construct($composerData);
41
42 1
		$this->path = $path;
43 1
	}
44
45
	/**
46
	 * {@inheritdoc}
47
	 */
48
	public function getPath() : string
49
	{
50
		return $this->path;
51
	}
52
}
53