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

Command::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 0
cts 4
cp 0
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 2
crap 2
1
<?php
2
/**
3
 * Command.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     Commands
10
 * @since          2.0.0
11
 *
12
 * @date           19.07.16
13
 */
14
15
declare(strict_types = 1);
16
17
namespace IPub\Packages\Commands;
18
19
use Symfony\Component\Console;
20
21
use IPub\Packages;
22
use IPub\Packages\Repository;
23
24
/**
25
 * Command envelope
26
 *
27
 * @package        iPublikuj:Packages!
28
 * @subpackage     Commands
29
 *
30
 * @author         Adam Kadlec <[email protected]>
31
 */
32 1
abstract class Command extends Console\Command\Command
33
{
34
	/**
35
	 * @var Packages\IPackagesManager
36
	 */
37
	protected $packageManager;
38
39
	/**
40
	 * @var Repository\IRepository
41
	 */
42
	protected $repository;
43
44
	/**
45
	 * @param Packages\IPackagesManager $packageManager
46
	 * @param Repository\IRepository $repository
47
	 */
48
	public function __construct(
49
		Packages\IPackagesManager $packageManager,
50
		Repository\IRepository $repository
51
	) {
52
		parent::__construct();
53
54
		$this->packageManager = $packageManager;
55
		$this->repository = $repository;
56
	}
57
}
58