Album::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/*******************************************************************************
3
 * This file is part of the Pbxg33k\MusicInfo package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * (c) 2017 Oguzhan uysal. All rights reserved
9
 ******************************************************************************/
10
11
namespace Pbxg33k\MusicInfo\Model;
12
13
use Doctrine\Common\Collections\ArrayCollection;
14
15
/**
16
 * Class Album
17
 * @package Model
18
 */
19
class Album extends BaseModel
20
{
21
    const TYPE_ALBUM        = 'album';
22
    const TYPE_SINGLE       = 'single';
23
    const TYPE_COMPILATION  = 'compilation';
24
25
    /**
26
     * @var string
27
     */
28
    protected $id;
29
30
    /**
31
     * @var string
32
     */
33
    protected $name;
34
35
    /**
36
     * @var string
37
     */
38
    protected $type;
39
40
    /**
41
     * @var ArrayCollection
42
     */
43
    protected $artists;
44
45
    /**
46
     * @var ArrayCollection
47
     */
48
    protected $tracks;
49
50
    /**
51
     * @var string
52
     */
53
    protected $image;
54
55
    /**
56
     * @var string
57
     */
58
    protected $uri;
59
60
    /**
61
     * @var ArrayCollection
62
     */
63
    protected $genres;
64
65
    /**
66
     * @var \DateTimeInterface
67
     */
68
    protected $release_date;
69
70
    /**
71
     * @var string
72
     */
73
    protected $label;
74
75
    /**
76
     * @return string
77
     */
78
    public function getId()
79
    {
80
        return $this->id;
81
    }
82
83
    /**
84
     * @param string $id
85
     *
86
     * @return Album
87
     */
88 2
    public function setId($id)
89
    {
90 2
        $this->id = $id;
91
92 2
        return $this;
93
    }
94
95
    /**
96
     * @return string
97
     */
98
    public function getName()
99
    {
100
        return $this->name;
101
    }
102
103
    /**
104
     * @param string $name
105
     *
106
     * @return Album
107
     */
108 2
    public function setName($name)
109
    {
110 2
        $this->name = $name;
111
112 2
        return $this;
113
    }
114
115
    /**
116
     * @return string
117
     */
118
    public function getType()
119
    {
120
        return $this->type;
121
    }
122
123
    /**
124
     * @param string $type
125
     *
126
     * @return Album
127
     */
128 2
    public function setType($type)
129
    {
130 2
        $this->type = $type;
131
132 2
        return $this;
133
    }
134
135
    /**
136
     * @return ArrayCollection
137
     */
138
    public function getArtists()
139
    {
140
        return $this->artists;
141
    }
142
143
    /**
144
     * @param ArrayCollection $artists
145
     *
146
     * @return Album
147
     */
148
    public function setArtists($artists)
149
    {
150
        $this->artists = $artists;
151
152
        return $this;
153
    }
154
155
    /**
156
     * @return ArrayCollection
157
     */
158
    public function getTracks()
159
    {
160
        return $this->tracks;
161
    }
162
163
    /**
164
     * @param ArrayCollection $tracks
165
     *
166
     * @return Album
167
     */
168
    public function setTracks($tracks)
169
    {
170
        $this->tracks = $tracks;
171
172
        return $this;
173
    }
174
175
    /**
176
     * @return string
177
     */
178
    public function getImage()
179
    {
180
        return $this->image;
181
    }
182
183
    /**
184
     * @param string $image
185
     *
186
     * @return Album
187
     */
188
    public function setImage($image)
189
    {
190
        $this->image = $image;
191
192
        return $this;
193
    }
194
195
    /**
196
     * @return string
197
     */
198
    public function getUri()
199
    {
200
        return $this->uri;
201
    }
202
203
    /**
204
     * @param string $uri
205
     *
206
     * @return Album
207
     */
208 2
    public function setUri($uri)
209
    {
210 2
        $this->uri = $uri;
211
212 2
        return $this;
213
    }
214
215
    /**
216
     * @return ArrayCollection
217
     */
218
    public function getGenres()
219
    {
220
        return $this->genres;
221
    }
222
223
    /**
224
     * @param ArrayCollection $genres
225
     *
226
     * @return Album
227
     */
228
    public function setGenres($genres)
229
    {
230
        $this->genres = $genres;
231
232
        return $this;
233
    }
234
235
    /**
236
     * @return \DateTimeInterface
237
     */
238
    public function getReleaseDate()
239
    {
240
        return $this->release_date;
241
    }
242
243
    /**
244
     * @param \DateTimeInterface $release_date
245
     *
246
     * @return Album
247
     */
248
    public function setReleaseDate($release_date)
249
    {
250
        $this->release_date = $release_date;
251
252
        return $this;
253
    }
254
255
    /**
256
     * @return string
257
     */
258
    public function getLabel()
259
    {
260
        return $this->label;
261
    }
262
263
    /**
264
     * @param string $label
265
     *
266
     * @return Album
267
     */
268
    public function setLabel($label)
269
    {
270
        $this->label = $label;
271
272
        return $this;
273
    }
274
}