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...
8
{
9
/**
10
* @var SomeService
11
*/
12
private $someService;
13
14
/**
15
* @var EventDispatcherInterface
16
*/
17
private $eventDispatcher;
18
19
public function __construct(SomeService $someService, EventDispatcherInterface $eventDispatcher)
20
{
21
$this->someService = $someService;
22
$this->eventDispatcher = $eventDispatcher;
23
}
24
25
/**
26
* @return SomeService
27
*/
28
public function getSomeService() : SomeService
29
{
30
return $this->someService;
31
}
32
33
/**
34
* @return EventDispatcherInterface
35
*/
36
public function getEventDispatcher() : EventDispatcherInterface
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.