Passed
Push — master ( d9b17e...f981b4 )
by Zoilo
01:42
created

ControlGroup::hierarchyId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace ZoiloMora\ElasticAPM\Utils\ControlGroup;
4
5
final class ControlGroup
6
{
7
    /**
8
     * @var string
9
     */
10
    private $hierarchyId;
11
12
    /**
13
     * @var string
14
     */
15
    private $controller;
16
17
    /**
18
     * @var string
19
     */
20
    private $path;
21
22
    /**
23
     * @param string $hierarchyId
24
     * @param string $controller
25
     * @param string $path
26
     */
27
    public function __construct(
28
        $hierarchyId,
29
        $controller,
30
        $path
31
    ) {
32
        $this->hierarchyId = $hierarchyId;
33
        $this->controller = $controller;
34
        $this->path = $path;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function hierarchyId()
41
    {
42
        return $this->hierarchyId;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function controller()
49
    {
50
        return $this->controller;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function path()
57
    {
58
        return $this->path;
59
    }
60
}
61