ExtendServiceDefinition   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 53
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getServiceNameToInject() 0 4 1
A getInterfaceNameToHandle() 0 4 1
A getMethodNameToCall() 0 4 1
1
<?php
2
3
namespace Spiechu\LazyPimple\DependencyInjection;
4
5
class ExtendServiceDefinition
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $serviceNameToInject;
11
12
    /**
13
     * @var string
14
     */
15
    protected $interfaceNameToHandle;
16
17
    /**
18
     * @var string
19
     */
20
    protected $methodNameToCall;
21
22
    /**
23
     * @param string $serviceNameToInject
24
     * @param string $interfaceNameToHandle
25
     * @param string $methodNameToCall
26
     */
27 5
    public function __construct(string $serviceNameToInject, string $interfaceNameToHandle, string $methodNameToCall)
28
    {
29 5
        $this->serviceNameToInject = $serviceNameToInject;
30 5
        $this->interfaceNameToHandle = $interfaceNameToHandle;
31 5
        $this->methodNameToCall = $methodNameToCall;
32 5
    }
33
34
    /**
35
     * @return string
36
     */
37 3
    public function getServiceNameToInject(): string
38
    {
39 3
        return $this->serviceNameToInject;
40
    }
41
42
    /**
43
     * @return string
44
     */
45 5
    public function getInterfaceNameToHandle(): string
46
    {
47 5
        return $this->interfaceNameToHandle;
48
    }
49
50
    /**
51
     * @return string
52
     */
53 3
    public function getMethodNameToCall(): string
54
    {
55 3
        return $this->methodNameToCall;
56
    }
57
}
58