SearchResult::isDisabled()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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 SearchResult
17
{
18
    /** @var string */
19
    protected $content;
20
    /** @var bool */
21
    protected $disabled = false;
22
    /** @var string */
23
    protected $name;
24
    /** @var string */
25
    protected $objectType;
26
    /** @var string */
27
    protected $zoneId;
28
    /** @var string */
29
    protected $zone;
30
    /** @var string */
31
    protected $type;
32
    /** @var int */
33
    protected $ttl;
34
35
    /**
36
     * @return string
37
     */
38
    public function getContent(): ?string
39
    {
40
        return $this->content;
41
    }
42
43
    /**
44
     * @param string $content
45
     *
46
     * @return SearchResult
47
     */
48
    public function setContent(string $content): SearchResult
49
    {
50
        $this->content = $content;
51
52
        return $this;
53
    }
54
55
    /**
56
     * @return bool
57
     */
58
    public function isDisabled(): bool
59
    {
60
        return $this->disabled;
61
    }
62
63
    /**
64
     * @param bool $disabled
65
     *
66
     * @return SearchResult
67
     */
68
    public function setDisabled(bool $disabled): SearchResult
69
    {
70
        $this->disabled = $disabled;
71
72
        return $this;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public function getName(): ?string
79
    {
80
        return $this->name;
81
    }
82
83
    /**
84
     * @param string $name
85
     *
86
     * @return SearchResult
87
     */
88
    public function setName(string $name): SearchResult
89
    {
90
        $this->name = $name;
91
92
        return $this;
93
    }
94
95
    /**
96
     * @return string
97
     */
98
    public function getObjectType(): string
99
    {
100
        return $this->objectType;
101
    }
102
103
    /**
104
     * @param string $objectType
105
     *
106
     * @return SearchResult
107
     */
108
    public function setObjectType(string $objectType): SearchResult
109
    {
110
        $this->objectType = $objectType;
111
112
        return $this;
113
    }
114
115
    /**
116
     * @return string
117
     */
118
    public function getZoneId(): string
119
    {
120
        return $this->zoneId;
121
    }
122
123
    /**
124
     * @param string $zoneId
125
     *
126
     * @return SearchResult
127
     */
128
    public function setZoneId(string $zoneId): SearchResult
129
    {
130
        $this->zoneId = $zoneId;
131
132
        return $this;
133
    }
134
135
    /**
136
     * @return string
137
     */
138
    public function getZone(): ?string
139
    {
140
        return $this->zone;
141
    }
142
143
    /**
144
     * @param string $zone
145
     *
146
     * @return SearchResult
147
     */
148
    public function setZone(string $zone): SearchResult
149
    {
150
        $this->zone = $zone;
151
152
        return $this;
153
    }
154
155
    /**
156
     * @return string
157
     */
158
    public function getType(): ?string
159
    {
160
        return $this->type;
161
    }
162
163
    /**
164
     * @param string $type
165
     *
166
     * @return SearchResult
167
     */
168
    public function setType(string $type): SearchResult
169
    {
170
        $this->type = $type;
171
172
        return $this;
173
    }
174
175
    /**
176
     * @return int
177
     */
178
    public function getTtl(): ?int
179
    {
180
        return $this->ttl;
181
    }
182
183
    /**
184
     * @param int $ttl
185
     *
186
     * @return SearchResult
187
     */
188
    public function setTtl(int $ttl): SearchResult
189
    {
190
        $this->ttl = $ttl;
191
192
        return $this;
193
    }
194
}
195