Record::setDisabled()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 2
b 0
f 0
nc 1
nop 1
dl 0
loc 5
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\Zone;
15
16
use Symfony\Component\Serializer\Annotation\Groups;
17
use Symfony\Component\Validator\Constraints as Assert;
18
19
class Record
20
{
21
    /**
22
     * @var string
23
     * @Assert\NotBlank(groups={"CREATE", "UPDATE"})
24
     * @Groups({"REPLACE", "CREATE"})
25
     */
26
    protected $content;
27
28
    /**
29
     * @var bool
30
     * @Groups({"REPLACE", "CREATE", "DELETE"})
31
     */
32
    protected $disabled = false;
33
34
    /**
35
     * @var bool
36
     * @Groups({"REPLACE", "CREATE", "DELETE"})
37
     */
38
    protected $setPtr = false;
39
40
    /**
41
     * @return string
42
     */
43
    public function getContent(): string
44
    {
45
        return $this->content;
46
    }
47
48
    /**
49
     * @param string $content
50
     *
51
     * @return Record
52
     */
53
    public function setContent(string $content): Record
54
    {
55
        $this->content = $content;
56
57
        return $this;
58
    }
59
60
    /**
61
     * @return bool
62
     */
63
    public function isDisabled(): bool
64
    {
65
        return $this->disabled;
66
    }
67
68
    /**
69
     * @param bool $disabled
70
     *
71
     * @return Record
72
     */
73
    public function setDisabled(bool $disabled): Record
74
    {
75
        $this->disabled = $disabled;
76
77
        return $this;
78
    }
79
80
    /**
81
     * @return mixed
82
     */
83
    public function getSetPtr()
84
    {
85
        return $this->setPtr;
86
    }
87
88
    /**
89
     * @param mixed $setPtr
90
     *
91
     * @return Record
92
     */
93
    public function setSetPtr($setPtr): Record
94
    {
95
        $this->setPtr = $setPtr;
96
97
        return $this;
98
    }
99
}
100