Completed
Push — master ( 8c5b1a...9a26dd )
by Tomáš
17:38
created

SomeAutowiredService::getEventDispatcher()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Symplify\DefaultAutowire\Tests\Source;
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