Setting   A
last analyzed

Complexity

Total Complexity 11

Size/Duplication

Total Lines 169
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 11
lcom 0
cbo 0
dl 0
loc 169
rs 10
c 0
b 0
f 0

11 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setTitle() 0 6 1
A getTitle() 0 4 1
A setApi() 0 6 1
A getApi() 0 4 1
A setUserSuffix() 0 6 1
A getUserSuffix() 0 4 1
A setGuildSuffix() 0 6 1
A getGuildSuffix() 0 4 1
A setCode() 0 6 1
A getCode() 0 4 1
1
<?php
2
3
namespace App\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @ORM\Entity(repositoryClass="App\Repository\SettingRepository")
9
 * @ORM\Table(name="setting")
10
 */
11
class Setting
12
{
13
    /**
14
     * @ORM\Id
15
     * @ORM\GeneratedValue
16
     * @ORM\Column(type="integer")
17
     */
18
    private $id;
19
20
    /**
21
     * @ORM\Column(type="string")
22
     */
23
    private $title = '';
24
25
    /**
26
     * @ORM\Column(type="string")
27
     */
28
    private $code = '';
29
30
    /**
31
     * @ORM\Column(type="string")
32
     */
33
    private $api = '';
34
35
    /**
36
     * @ORM\Column(type="string")
37
     */
38
    private $userSuffix = '';
39
40
    /**
41
     * @ORM\Column(type="string")
42
     */
43
    private $guildSuffix = '';
44
45
    /**
46
     * @ORM\Column(type="string")
47
     */
48
    private $unitSuffix = '';
0 ignored issues
show
Unused Code introduced by
The property $unitSuffix is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
49
50
    /**
51
     * Get id.
52
     *
53
     * @return int
54
     */
55
    public function getId()
56
    {
57
        return $this->id;
58
    }
59
60
    /**
61
     * Set title.
62
     *
63
     * @param string $title
64
     *
65
     * @return Setting
66
     */
67
    public function setTitle($title)
68
    {
69
        $this->title = $title;
70
71
        return $this;
72
    }
73
74
    /**
75
     * Get title.
76
     *
77
     * @return string
78
     */
79
    public function getTitle()
80
    {
81
        return $this->title;
82
    }
83
84
    /**
85
     * Set api.
86
     *
87
     * @param string $api
88
     *
89
     * @return Setting
90
     */
91
    public function setApi($api)
92
    {
93
        $this->api = $api;
94
95
        return $this;
96
    }
97
98
    /**
99
     * Get api.
100
     *
101
     * @return string
102
     */
103
    public function getApi()
104
    {
105
        return $this->api;
106
    }
107
108
    /**
109
     * Set userSuffix.
110
     *
111
     * @param string $userSuffix
112
     *
113
     * @return Setting
114
     */
115
    public function setUserSuffix($userSuffix)
116
    {
117
        $this->userSuffix = $userSuffix;
118
119
        return $this;
120
    }
121
122
    /**
123
     * Get userSuffix.
124
     *
125
     * @return string
126
     */
127
    public function getUserSuffix()
128
    {
129
        return $this->userSuffix;
130
    }
131
132
    /**
133
     * Set guildSuffix.
134
     *
135
     * @param string $guildSuffix
136
     *
137
     * @return Setting
138
     */
139
    public function setGuildSuffix($guildSuffix)
140
    {
141
        $this->guildSuffix = $guildSuffix;
142
143
        return $this;
144
    }
145
146
    /**
147
     * Get guildSuffix.
148
     *
149
     * @return string
150
     */
151
    public function getGuildSuffix()
152
    {
153
        return $this->guildSuffix;
154
    }
155
156
    /**
157
     * Set code.
158
     *
159
     * @param string $code
160
     *
161
     * @return Setting
162
     */
163
    public function setCode($code)
164
    {
165
        $this->code = $code;
166
167
        return $this;
168
    }
169
170
    /**
171
     * Get code.
172
     *
173
     * @return string
174
     */
175
    public function getCode()
176
    {
177
        return $this->code;
178
    }
179
}
180