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

ControlGroup   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
dl 0
loc 54
rs 10
c 1
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A hierarchyId() 0 3 1
A path() 0 3 1
A __construct() 0 8 1
A controller() 0 3 1
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