Passed
Pull Request — master (#1)
by Rafal
01:47
created

ArtistDataProvider::hasUri()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
declare(strict_types=1);
3
namespace SpotifyApiConnect\Domain\DataTransferObject;
4
5
/**
6
 * Auto generated data provider
7
 */
8
final class ArtistDataProvider extends \Xervice\DataProvider\Business\Model\DataProvider\AbstractDataProvider implements \Xervice\DataProvider\Business\Model\DataProvider\DataProviderInterface
9
{
10
    /** @var \SpotifyApiConnect\Domain\DataTransferObject\ExternalUrlDataProvider */
11
    protected $external_urls;
12
13
    /** @var string */
14
    protected $id;
15
16
    /** @var string */
17
    protected $uri;
18
19
    /** @var string */
20
    protected $type;
21
22
    /** @var string */
23
    protected $name;
24
25
    /** @var string */
26
    protected $href;
27
28
29
    /**
30
     * @return \SpotifyApiConnect\Domain\DataTransferObject\ExternalUrlDataProvider
31
     */
32
    public function getExternal_urls(): ?\SpotifyApiConnect\Domain\DataTransferObject\ExternalUrlDataProvider
33
    {
34
        return $this->external_urls;
35
    }
36
37
38
    /**
39
     * @param \SpotifyApiConnect\Domain\DataTransferObject\ExternalUrlDataProvider $external_urls
40
     * @return ArtistDataProvider
41
     */
42
    public function setExternal_urls(?\SpotifyApiConnect\Domain\DataTransferObject\ExternalUrlDataProvider $external_urls = null)
43
    {
44
        $this->external_urls = $external_urls;
45
46
        return $this;
47
    }
48
49
50
    /**
51
     * @return ArtistDataProvider
52
     */
53
    public function unsetExternal_urls()
54
    {
55
        $this->external_urls = null;
56
57
        return $this;
58
    }
59
60
61
    /**
62
     * @return bool
63
     */
64
    public function hasExternal_urls()
65
    {
66
        return ($this->external_urls !== null && $this->external_urls !== []);
67
    }
68
69
70
    /**
71
     * @return string
72
     */
73
    public function getId(): ?string
74
    {
75
        return $this->id;
76
    }
77
78
79
    /**
80
     * @param string $id
81
     * @return ArtistDataProvider
82
     */
83
    public function setId(?string $id = null)
84
    {
85
        $this->id = $id;
86
87
        return $this;
88
    }
89
90
91
    /**
92
     * @return ArtistDataProvider
93
     */
94
    public function unsetId()
95
    {
96
        $this->id = null;
97
98
        return $this;
99
    }
100
101
102
    /**
103
     * @return bool
104
     */
105
    public function hasId()
106
    {
107
        return ($this->id !== null && $this->id !== []);
108
    }
109
110
111
    /**
112
     * @return string
113
     */
114
    public function getUri(): ?string
115
    {
116
        return $this->uri;
117
    }
118
119
120
    /**
121
     * @param string $uri
122
     * @return ArtistDataProvider
123
     */
124
    public function setUri(?string $uri = null)
125
    {
126
        $this->uri = $uri;
127
128
        return $this;
129
    }
130
131
132
    /**
133
     * @return ArtistDataProvider
134
     */
135
    public function unsetUri()
136
    {
137
        $this->uri = null;
138
139
        return $this;
140
    }
141
142
143
    /**
144
     * @return bool
145
     */
146
    public function hasUri()
147
    {
148
        return ($this->uri !== null && $this->uri !== []);
149
    }
150
151
152
    /**
153
     * @return string
154
     */
155
    public function getType(): ?string
156
    {
157
        return $this->type;
158
    }
159
160
161
    /**
162
     * @param string $type
163
     * @return ArtistDataProvider
164
     */
165
    public function setType(?string $type = null)
166
    {
167
        $this->type = $type;
168
169
        return $this;
170
    }
171
172
173
    /**
174
     * @return ArtistDataProvider
175
     */
176
    public function unsetType()
177
    {
178
        $this->type = null;
179
180
        return $this;
181
    }
182
183
184
    /**
185
     * @return bool
186
     */
187
    public function hasType()
188
    {
189
        return ($this->type !== null && $this->type !== []);
190
    }
191
192
193
    /**
194
     * @return string
195
     */
196
    public function getName(): ?string
197
    {
198
        return $this->name;
199
    }
200
201
202
    /**
203
     * @param string $name
204
     * @return ArtistDataProvider
205
     */
206
    public function setName(?string $name = null)
207
    {
208
        $this->name = $name;
209
210
        return $this;
211
    }
212
213
214
    /**
215
     * @return ArtistDataProvider
216
     */
217
    public function unsetName()
218
    {
219
        $this->name = null;
220
221
        return $this;
222
    }
223
224
225
    /**
226
     * @return bool
227
     */
228
    public function hasName()
229
    {
230
        return ($this->name !== null && $this->name !== []);
231
    }
232
233
234
    /**
235
     * @return string
236
     */
237
    public function getHref(): ?string
238
    {
239
        return $this->href;
240
    }
241
242
243
    /**
244
     * @param string $href
245
     * @return ArtistDataProvider
246
     */
247
    public function setHref(?string $href = null)
248
    {
249
        $this->href = $href;
250
251
        return $this;
252
    }
253
254
255
    /**
256
     * @return ArtistDataProvider
257
     */
258
    public function unsetHref()
259
    {
260
        $this->href = null;
261
262
        return $this;
263
    }
264
265
266
    /**
267
     * @return bool
268
     */
269
    public function hasHref()
270
    {
271
        return ($this->href !== null && $this->href !== []);
272
    }
273
274
275
    /**
276
     * @return array
277
     */
278
    protected function getElements(): array
279
    {
280
        return array (
281
          'external_urls' =>
282
          array (
283
            'name' => 'external_urls',
284
            'allownull' => true,
285
            'default' => '',
286
            'type' => '\\SpotifyApiConnect\\Domain\\DataTransferObject\\ExternalUrlDataProvider',
287
            'is_collection' => false,
288
            'is_dataprovider' => true,
289
            'isCamelCase' => false,
290
          ),
291
          'id' =>
292
          array (
293
            'name' => 'id',
294
            'allownull' => true,
295
            'default' => '',
296
            'type' => 'string',
297
            'is_collection' => false,
298
            'is_dataprovider' => false,
299
            'isCamelCase' => false,
300
          ),
301
          'uri' =>
302
          array (
303
            'name' => 'uri',
304
            'allownull' => true,
305
            'default' => '',
306
            'type' => 'string',
307
            'is_collection' => false,
308
            'is_dataprovider' => false,
309
            'isCamelCase' => false,
310
          ),
311
          'type' =>
312
          array (
313
            'name' => 'type',
314
            'allownull' => true,
315
            'default' => '',
316
            'type' => 'string',
317
            'is_collection' => false,
318
            'is_dataprovider' => false,
319
            'isCamelCase' => false,
320
          ),
321
          'name' =>
322
          array (
323
            'name' => 'name',
324
            'allownull' => true,
325
            'default' => '',
326
            'type' => 'string',
327
            'is_collection' => false,
328
            'is_dataprovider' => false,
329
            'isCamelCase' => false,
330
          ),
331
          'href' =>
332
          array (
333
            'name' => 'href',
334
            'allownull' => true,
335
            'default' => '',
336
            'type' => 'string',
337
            'is_collection' => false,
338
            'is_dataprovider' => false,
339
            'isCamelCase' => false,
340
          ),
341
        );
342
    }
343
}
344