BaseConfig::getLabel()   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
namespace Xiidea\EasyConfigBundle\Model;
4
5
class BaseConfig implements BaseConfigInterface
6
{
7
    private $id;
8
9
    private $value;
10
11
    private bool $locked = false;
12
13
    private $type;
14
15
    private bool $frontend = false;
16
17
    private $module;
18
19
    private $label;
20
21
    private $isGlobal = true;
22
23
    public function __construct(string $id)
24
    {
25
        $this->id = $id;
26
    }
27
28
    /**
29
     * @return mixed
30
     */
31
    public function getId()
32
    {
33
        return $this->id;
34
    }
35
36
    /**
37
     * @param  string  $id
38
     */
39
    public function setId($id): self
40
    {
41
        $this->id = $id;
42
43
        return $this;
44
    }
45
46
47
    public function getValue(): mixed
48
    {
49
        return $this->value;
50
    }
51
52
    public function setValue(?string $value): self
53
    {
54
        $this->value = $value;
55
56
        return $this;
57
    }
58
59
60
    public function getLocked(): bool
61
    {
62
        return $this->locked;
63
    }
64
65
    public function setLocked(bool $locked): self
66
    {
67
        $this->locked = $locked;
68
69
        return $this;
70
    }
71
72
    public function getType(): ?string
73
    {
74
        return $this->type;
75
    }
76
77
    public function setType(?string $type): self
78
    {
79
        $this->type = $type;
80
81
        return $this;
82
    }
83
84
85
    public function isFrontend(): bool
86
    {
87
        return $this->frontend;
88
    }
89
90
91
    public function setFrontend(bool $frontend): self
92
    {
93
        $this->frontend = $frontend;
94
95
        return $this;
96
    }
97
98
99
    public function getModule(): ?string
100
    {
101
        return $this->module;
102
    }
103
104
    /**
105
     * @param  mixed  $module
106
     */
107
    public function setModule(?string $module): self
108
    {
109
        $this->module = $module;
110
111
        return $this;
112
    }
113
114
    /**
115
     * @return mixed
116
     */
117
    public function getLabel(): ?string
118
    {
119
        return $this->label;
120
    }
121
122
123
    public function setLabel(?string $label): self
124
    {
125
        $this->label = $label;
126
127
        return $this;
128
    }
129
130
131
    public function getIsGlobal(): bool
132
    {
133
        return $this->isGlobal;
134
    }
135
136
137
    public function setIsGlobal(bool $isGlobal): self
138
    {
139
        $this->isGlobal = $isGlobal;
140
141
        return $this;
142
    }
143
}
144