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

SomeAutowiredService   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 34
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getSomeService() 0 4 1
A getEventDispatcher() 0 4 1
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