Test Failed
Branch develop (1e6d78)
by Ludwig
02:24
created

Config   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 69
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 69
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 3 1
A setType() 0 5 1
A getValue() 0 3 1
A setValue() 0 5 1
A getName() 0 3 1
A setName() 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 Config
17
{
18
    /** @var string|null */
19
    private $type;
20
21
    /** @var string|null */
22
    private $name;
23
24
    /** @var string|null */
25
    private $value;
26
27
    /**
28
     * @return null|string
29
     */
30
    public function getType(): ?string
31
    {
32
        return $this->type;
33
    }
34
35
    /**
36
     * @param null|string $type
37
     *
38
     * @return Config
39
     */
40
    public function setType(?string $type): Config
41
    {
42
        $this->type = $type;
43
44
        return $this;
45
    }
46
47
    /**
48
     * @return null|string
49
     */
50
    public function getName(): ?string
51
    {
52
        return $this->name;
53
    }
54
55
    /**
56
     * @param null|string $name
57
     *
58
     * @return Config
59
     */
60
    public function setName(?string $name): Config
61
    {
62
        $this->name = $name;
63
64
        return $this;
65
    }
66
67
    /**
68
     * @return null|string
69
     */
70
    public function getValue(): ?string
71
    {
72
        return $this->value;
73
    }
74
75
    /**
76
     * @param null|string $value
77
     *
78
     * @return Config
79
     */
80
    public function setValue(?string $value): Config
81
    {
82
        $this->value = $value;
83
84
        return $this;
85
    }
86
}
87