Query::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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