This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
31
{
32
/**
33
* @var Packages\PackagesManager
34
*/
35
private $manager;
36
37
/**
38
* @var Entities\IPackage
39
*/
40
private $package;
41
42
/**
43
* @param Packages\PackagesManager $manager
44
* @param Entities\IPackage $package
45
*/
46
public function __construct(
47
Packages\PackagesManager $manager,
48
Entities\IPackage $package
49
) {
50
$this->manager = $manager;
51
$this->package = $package;
52
}
53
54
/**
55
* @return Packages\PackagesManager
56
*/
57
public function getManager() : Packages\PackagesManager
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.