Server   A
last analyzed

Complexity

Total Complexity 14

Size/Duplication

Total Lines 155
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 29
c 2
b 0
f 0
dl 0
loc 155
rs 10
wmc 14

14 Methods

Rating   Name   Duplication   Size   Complexity  
A setVersion() 0 5 1
A setConfigUrl() 0 5 1
A getZonesUrl() 0 3 1
A setType() 0 5 1
A getConfigUrl() 0 3 1
A getId() 0 3 1
A setZonesUrl() 0 5 1
A getDaemonType() 0 3 1
A setDaemonType() 0 5 1
A getUrl() 0 3 1
A setUrl() 0 5 1
A getType() 0 3 1
A getVersion() 0 3 1
A setId() 0 5 1
1
<?php
2
3
/*
4
 * This file is part of the CwdPowerDNS Client
5
 *
6
 * (c) 2018 cwd.at GmbH <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Cwd\PowerDNSClient\Model;
15
16
class Server
17
{
18
    /** @var string */
19
    protected $type = 'Server';
20
    /** @var string */
21
    protected $id;
22
    /** @var string */
23
    protected $daemonType;
24
    /** @var string */
25
    protected $version;
26
    /** @var string */
27
    protected $url;
28
    /** @var string */
29
    protected $configUrl;
30
    /** @var string */
31
    protected $zonesUrl;
32
33
    /**
34
     * @return string
35
     */
36
    public function getType(): string
37
    {
38
        return $this->type;
39
    }
40
41
    /**
42
     * @param string $type
43
     *
44
     * @return Server
45
     */
46
    public function setType(string $type): Server
47
    {
48
        $this->type = $type;
49
50
        return $this;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getId(): string
57
    {
58
        return $this->id;
59
    }
60
61
    /**
62
     * @param string $id
63
     *
64
     * @return Server
65
     */
66
    public function setId(string $id): Server
67
    {
68
        $this->id = $id;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @return string
75
     */
76
    public function getDaemonType(): string
77
    {
78
        return $this->daemonType;
79
    }
80
81
    /**
82
     * @param string $daemonType
83
     *
84
     * @return Server
85
     */
86
    public function setDaemonType(string $daemonType): Server
87
    {
88
        $this->daemonType = $daemonType;
89
90
        return $this;
91
    }
92
93
    /**
94
     * @return string
95
     */
96
    public function getVersion(): string
97
    {
98
        return $this->version;
99
    }
100
101
    /**
102
     * @param string $version
103
     *
104
     * @return Server
105
     */
106
    public function setVersion(string $version): Server
107
    {
108
        $this->version = $version;
109
110
        return $this;
111
    }
112
113
    /**
114
     * @return string
115
     */
116
    public function getUrl(): string
117
    {
118
        return $this->url;
119
    }
120
121
    /**
122
     * @param string $url
123
     *
124
     * @return Server
125
     */
126
    public function setUrl(string $url): Server
127
    {
128
        $this->url = $url;
129
130
        return $this;
131
    }
132
133
    /**
134
     * @return string
135
     */
136
    public function getConfigUrl(): string
137
    {
138
        return $this->configUrl;
139
    }
140
141
    /**
142
     * @param string $configUrl
143
     *
144
     * @return Server
145
     */
146
    public function setConfigUrl(string $configUrl): Server
147
    {
148
        $this->configUrl = $configUrl;
149
150
        return $this;
151
    }
152
153
    /**
154
     * @return string
155
     */
156
    public function getZonesUrl(): string
157
    {
158
        return $this->zonesUrl;
159
    }
160
161
    /**
162
     * @param string $zonesUrl
163
     *
164
     * @return Server
165
     */
166
    public function setZonesUrl(string $zonesUrl): Server
167
    {
168
        $this->zonesUrl = $zonesUrl;
169
170
        return $this;
171
    }
172
}
173