ConstructArgument   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 55
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getName() 0 4 1
A getContainerKey() 0 4 1
A getContainerMethod() 0 4 1
1
<?php
2
3
namespace Saxulum\LazyService;
4
5
class ConstructArgument
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $name;
11
12
    /**
13
     * @var string
14
     */
15
    protected $containerKey;
16
17
    /**
18
     * @var string
19
     */
20
    protected $containerMethod;
21
22
    const CONTAINER_METHOD_GET = 'get';
23
    const CONTAINER_METHOD_GETPARAMETER = 'getParameter';
24
25
    /**
26
     * @param string $name
27
     * @param string $containerKey
28
     */
29
    public function __construct($name, $containerKey, $containerMethod)
30
    {
31
        $this->name = $name;
32
        $this->containerKey = $containerKey;
33
        $this->containerMethod = $containerMethod;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getName()
40
    {
41
        return $this->name;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getContainerKey()
48
    {
49
        return $this->containerKey;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getContainerMethod()
56
    {
57
        return $this->containerMethod;
58
    }
59
}
60