Dns   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 4
c 2
b 1
f 0
lcom 0
cbo 0
dl 0
loc 55
ccs 11
cts 11
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getType() 0 4 1
A getName() 0 4 1
A getValue() 0 4 1
1
<?php
2
3
namespace PeterNijssen\Ses\Model;
4
5
class Dns
6
{
7
    /**
8
     * @var string
9
     */
10
    private $type;
11
12
    /**
13
     * @var string
14
     */
15
    private $name;
16
17
    /**
18
     * @var string
19
     */
20
    private $value;
21
22
    /**
23
     * Dns constructor.
24
     *
25
     * @param string $type
26
     * @param string $name
27
     * @param string $value
28
     */
29 7
    public function __construct($type, $name, $value)
30
    {
31 7
        $this->type = $type;
32 7
        $this->name = $name;
33 7
        $this->value = $value;
34 7
    }
35
36
    /**
37
     * @return string
38
     */
39 1
    public function getType()
40
    {
41 1
        return $this->type;
42
    }
43
44
    /**
45
     * @return string
46
     */
47 1
    public function getName()
48
    {
49 1
        return $this->name;
50
    }
51
52
    /**
53
     * @return string
54
     */
55 1
    public function getValue()
56
    {
57 1
        return $this->value;
58
    }
59
}
60