Completed
Push — feature/spotify ( 7a052d...23e210 )
by Oguzhan
02:13
created

Album::setImage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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