Query   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 62
rs 10
c 1
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getName() 0 4 1
A getType() 0 4 1
A getClass() 0 4 1
A getCurrentTime() 0 4 1
1
<?php
2
3
namespace Thruster\Component\Dns;
4
5
/**
6
 * Class Query
7
 *
8
 * @package Thruster\Component\Dns
9
 * @author  Aurimas Niekis <[email protected]>
10
 */
11
class Query
12
{
13
    /**
14
     * @var string
15
     */
16
    private $name;
17
18
    /**
19
     * @var int
20
     */
21
    private $type;
22
23
    /**
24
     * @var int
25
     */
26
    private $class;
27
28
    /**
29
     * @var int
30
     */
31
    private $currentTime;
32
33
    public function __construct(string $name, int $type, int $class, int $currentTime)
34
    {
35
        $this->name = $name;
36
        $this->type = $type;
37
        $this->class = $class;
38
        $this->currentTime = $currentTime;
39
    }
40
41
    /**
42
     * @return string
43
     */
44
    public function getName()
45
    {
46
        return $this->name;
47
    }
48
49
    /**
50
     * @return int
51
     */
52
    public function getType()
53
    {
54
        return $this->type;
55
    }
56
57
    /**
58
     * @return int
59
     */
60
    public function getClass()
61
    {
62
        return $this->class;
63
    }
64
65
    /**
66
     * @return int
67
     */
68
    public function getCurrentTime()
69
    {
70
        return $this->currentTime;
71
    }
72
}
73