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...
32
{
33
/**
34
* @var Mqtt\Subscription
35
*/
36
private $subscription;
37
38
/**
39
* @var Client\IClient
40
*/
41
private $client;
42
43
/**
44
* @param Mqtt\Subscription $subscription
45
* @param Client\IClient $client
46
*/
47
public function __construct(
48
Mqtt\Subscription $subscription,
49
Client\IClient $client
50
) {
51
$this->subscription = $subscription;
52
$this->client = $client;
53
}
54
55
/**
56
* @return Mqtt\Subscription
57
*/
58
public function getSubscription() : Mqtt\Subscription
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.