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...
12
{
13
/**
14
* @var VirtualHost
15
*/
16
private $virtualHost;
17
18
/**
19
* @var ExchangeName
20
*/
21
private $exchangeName;
22
23
/**
24
* @return VirtualHost
25
*/
26
public function getVirtualHost(): VirtualHost
27
{
28
return $this->virtualHost;
29
}
30
31
/**
32
* @return ExchangeName
33
*/
34
public function getExchangeName()
35
{
36
return $this->exchangeName;
37
}
38
39
/**
40
* JobExchangeVirtualHostList constructor.
41
* @param VirtualHost $virtualHost
42
*/
43
public function __construct(VirtualHost $virtualHost, ExchangeName $exchangeName)
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.