Completed
Pull Request — 2.0 (#37)
by Raphaël
10:32
created

Field::getLookupModuleName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
nc 1
cc 1
nop 0
1
<?php
2
3
namespace Wabel\Zoho\CRM\BeanComponents;
4
5
6
class Field
7
{
8
9
    /**
10
     * @var boolean
11
     */
12
    private $req;
13
14
    /**
15
     * @var string
16
     */
17
    private $type;
18
19
    /**
20
     * @var boolean
21
     */
22
    private $isreadonly;
23
24
    /**
25
     * @var int
26
     */
27
    private $maxlength;
28
29
    /**
30
     * @var string
31
     */
32
    private $label;
33
34
    /**
35
     * @var string|null
36
     */
37
    private $dv;
38
39
    /**
40
     * @var boolean
41
     */
42
    private $customfield;
43
44
45
    /**
46
     * @var string[]
47
     */
48
    private $values;
49
50
    /**
51
     * @var string
52
     */
53
    private $phpType;
54
55
    /**
56
     * @var string
57
     */
58
    private $getter;
59
60
    /**
61
     * @var string
62
     */
63
    private $setter;
64
65
    /**
66
     * @var string
67
     */
68
    private $name;
69
70
    /**
71
     * @var string
72
     */
73
    private $apiName;
74
75
    /**
76
     * @var boolean
77
     */
78
    private $system;
79
80
    /**
81
     * @var string|null
82
     */
83
    private $lookupModuleName;
84
85
    /**
86
     * @return bool
87
     */
88
    public function getReq(): bool
89
    {
90
        return $this->req;
91
    }
92
93
    /**
94
     * @param bool $req
95
     */
96
    public function setReq(bool $req): void
97
    {
98
        $this->req = $req;
99
    }
100
101
    /**
102
     * @return string
103
     */
104
    public function getType(): string
105
    {
106
        return $this->type;
107
    }
108
109
    /**
110
     * @param string $type
111
     */
112
    public function setType(string $type): void
113
    {
114
        $this->type = $type;
115
    }
116
117
    /**
118
     * @return bool
119
     */
120
    public function getIsreadonly(): bool
121
    {
122
        return $this->isreadonly;
123
    }
124
125
    /**
126
     * @param bool $isreadonly
127
     */
128
    public function setIsreadonly(bool $isreadonly): void
129
    {
130
        $this->isreadonly = $isreadonly;
131
    }
132
133
    /**
134
     * @return int
135
     */
136
    public function getMaxlength(): int
137
    {
138
        return $this->maxlength;
139
    }
140
141
    /**
142
     * @param int $maxlength
143
     */
144
    public function setMaxlength(int $maxlength): void
145
    {
146
        $this->maxlength = $maxlength;
147
    }
148
149
    /**
150
     * @return string
151
     */
152
    public function getLabel(): string
153
    {
154
        return $this->label;
155
    }
156
157
    /**
158
     * @param string $label
159
     */
160
    public function setLabel(string $label): void
161
    {
162
        $this->label = $label;
163
    }
164
165
    /**
166
     * @return string|null
167
     */
168
    public function getDv(): string
169
    {
170
        return $this->dv;
171
    }
172
173
    /**
174
     * @param string|null $dv
175
     */
176
    public function setDv($dv): void
177
    {
178
        $this->dv = $dv;
179
    }
180
181
    /**
182
     * @return bool
183
     */
184
    public function getCustomfield(): bool
185
    {
186
        return $this->customfield;
187
    }
188
189
    /**
190
     * @param bool $customfield
191
     */
192
    public function setCustomfield(bool $customfield): void
193
    {
194
        $this->customfield = $customfield;
195
    }
196
197
    /**
198
     * @return string[]
199
     */
200
    public function getValues(): array
201
    {
202
        return $this->values;
203
    }
204
205
    /**
206
     * @param string[] $values
207
     */
208
    public function setValues(array $values): void
209
    {
210
        $this->values = $values;
211
    }
212
213
    /**
214
     * @return string
215
     */
216
    public function getPhpType(): string
217
    {
218
        return $this->phpType;
219
    }
220
221
    /**
222
     * @param string $phpType
223
     */
224
    public function setPhpType(string $phpType): void
225
    {
226
        $this->phpType = $phpType;
227
    }
228
229
    /**
230
     * @return string
231
     */
232
    public function getGetter(): string
233
    {
234
        return $this->getter;
235
    }
236
237
    /**
238
     * @param string $getter
239
     */
240
    public function setGetter(string $getter): void
241
    {
242
        $this->getter = $getter;
243
    }
244
245
    /**
246
     * @return string
247
     */
248
    public function getSetter(): string
249
    {
250
        return $this->setter;
251
    }
252
253
    /**
254
     * @param string $setter
255
     */
256
    public function setSetter(string $setter): void
257
    {
258
        $this->setter = $setter;
259
    }
260
261
    /**
262
     * @return string
263
     */
264
    public function getName(): string
265
    {
266
        return $this->name;
267
    }
268
269
    /**
270
     * @param string $name
271
     */
272
    public function setName(string $name): void
273
    {
274
        $this->name = $name;
275
    }
276
277
    /**
278
     * @return string
279
     */
280
    public function getApiName(): string
281
    {
282
        return $this->apiName;
283
    }
284
285
    /**
286
     * @param string $apiName
287
     */
288
    public function setApiName(string $apiName): void
289
    {
290
        $this->apiName = $apiName;
291
    }
292
293
    /**
294
     * @return bool
295
     */
296
    public function isSystem(): bool
297
    {
298
        return $this->system;
299
    }
300
301
    /**
302
     * @param bool $system
303
     */
304
    public function setSystem(bool $system): void
305
    {
306
        $this->system = $system;
307
    }
308
309
    /**
310
     * @return null|string
311
     */
312
    public function getLookupModuleName(): ?string
313
    {
314
        return $this->lookupModuleName;
315
    }
316
317
    /**
318
     * @param null|string $lookupModuleName
319
     */
320
    public function setLookupModuleName(?string $lookupModuleName): void
321
    {
322
        $this->lookupModuleName = $lookupModuleName;
323
    }
324
325
326
327
328
}