Kong   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 54
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getLuaVersion() 0 3 1
A getHostname() 0 3 1
A getTagLine() 0 3 1
A getVersion() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace CCT\Kong\Model;
6
7
use CCT\Kong\Model\Structure\ExtraFieldsInterface;
8
use CCT\Kong\Model\Structure\ExtraFieldsTrait;
9
10
class Kong implements ExtraFieldsInterface
11
{
12
    use ExtraFieldsTrait;
13
14
    /**
15
     * @var string
16
     */
17
    protected $hostname;
18
19
    /**
20
     * @var string
21
     */
22
    protected $luaVersion;
23
24
    /**
25
     * @var string
26
     */
27
    protected $tagLine;
28
29
    /**
30
     * @var string
31
     */
32
    protected $version;
33
34
    /**
35
     * @return string
36
     */
37 1
    public function getHostname(): string
38
    {
39 1
        return $this->hostname;
40
    }
41
42
    /**
43
     * @return string
44
     */
45 1
    public function getLuaVersion(): string
46
    {
47 1
        return $this->luaVersion;
48
    }
49
50
    /**
51
     * @return string
52
     */
53 1
    public function getTagLine(): string
54
    {
55 1
        return $this->tagLine;
56
    }
57
58
    /**
59
     * @return string
60
     */
61 1
    public function getVersion(): string
62
    {
63 1
        return $this->version;
64
    }
65
}
66