Command   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 20%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 26
ccs 1
cts 5
cp 0.2
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
/**
3
 * Command.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     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