Code Duplication    Length = 34-34 lines in 2 locations

tests/Source/SomeAutowiredService.php 1 location

@@ 7-40 (lines=34) @@
4
5
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
6
7
class SomeAutowiredService
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()
29
    {
30
        return $this->someService;
31
    }
32
33
    /**
34
     * @return EventDispatcherInterface
35
     */
36
    public function getEventDispatcher()
37
    {
38
        return $this->eventDispatcher;
39
    }
40
}
41

tests/Source/SomeBuiltAutowiredService.php 1 location

@@ 7-40 (lines=34) @@
4
5
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
6
7
class SomeBuiltAutowiredService
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
37
    {
38
        return $this->eventDispatcher;
39
    }
40
}
41