Completed
Push — master ( 60e59a...334051 )
by Adam
06:35
created

Command   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 26
rs 10

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        http://www.ipublikuj.eu
7
 * @author         Adam Kadlec http://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;
22
use IPub\Packages;
23
use IPub\Packages\Repository;
24
25
/**
26
 * Command envelope
27
 *
28
 * @package        iPublikuj:Packages!
29
 * @subpackage     Commands
30
 *
31
 * @author         Adam Kadlec <[email protected]>
32
 */
33
abstract class Command extends Console\Command\Command
34
{
35
	/**
36
	 * @var Packages\IPackagesManager
37
	 */
38
	protected $packageManager;
39
40
	/**
41
	 * @var Repository\IRepository
42
	 */
43
	protected $repository;
44
45
	/**
46
	 * @param Packages\IPackagesManager $packageManager
47
	 * @param Repository\IRepository $repository
48
	 */
49
	public function __construct(
50
		Packages\IPackagesManager $packageManager,
51
		Repository\IRepository $repository
52
	) {
53
		parent::__construct();
54
55
		$this->packageManager = $packageManager;
56
		$this->repository = $repository;
57
	}
58
}
59