ConstructArgument::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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