Track   A
last analyzed

Complexity

Total Complexity 18

Size/Duplication

Total Lines 228
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 33.33%

Importance

Changes 0
Metric Value
wmc 18
lcom 0
cbo 1
dl 0
loc 228
ccs 15
cts 45
cp 0.3333
rs 10
c 0
b 0
f 0

18 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getName() 0 4 1
A setName() 0 6 1
A getImage() 0 4 1
A setImage() 0 6 1
A getUri() 0 4 1
A setUri() 0 6 1
A getAlbumTrack() 0 4 1
A setAlbumTrack() 0 6 1
A getTrackArtists() 0 4 1
A setTrackArtists() 0 6 1
A getExplicit() 0 4 1
A setExplicit() 0 6 1
A getLength() 0 4 1
A setLength() 0 6 1
A getPreviewUri() 0 4 1
A setPreviewUri() 0 6 1
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 GuzzleHttp\Psr7\Uri;
14
15
/**
16
 * Class Track
17
 * @package Model
18
 */
19
class Track extends BaseModel
20
{
21
    /**
22
     * @var
23
     */
24
    protected $id;
25
26
    /**
27
     * @var
28
     */
29
    protected $name;
30
31
    /**
32
     * @var
33
     */
34
    protected $image;
35
36
    /**
37
     * @var Uri
38
     */
39
    protected $uri;
40
41
    /**
42
     * @var
43
     */
44
    protected $explicit;
45
46
    /**
47
     * @var integer
48
     */
49
    protected $length;
50
51
    /**
52
     * @var Uri
53
     */
54
    protected $preview_uri;
55
56
    /**
57
     * @var
58
     */
59
    protected $albumTrack;
60
61
    /**
62
     * @var
63
     */
64
    protected $trackArtists;
65
66
    /**
67
     * @return mixed
68
     */
69
    public function getId()
70
    {
71
        return $this->id;
72
    }
73
74
    /**
75
     * @param mixed $id
76
     *
77
     * @return Track
78
     */
79 2
    public function setId($id)
80
    {
81 2
        $this->id = $id;
82
83 2
        return $this;
84
    }
85
86
    /**
87
     * @return mixed
88
     */
89
    public function getName()
90
    {
91
        return $this->name;
92
    }
93
94
    /**
95
     * @param mixed $name
96
     *
97
     * @return Track
98
     */
99 2
    public function setName($name)
100
    {
101 2
        $this->name = $name;
102
103 2
        return $this;
104
    }
105
106
    /**
107
     * @return mixed
108
     */
109
    public function getImage()
110
    {
111
        return $this->image;
112
    }
113
114
    /**
115
     * @param mixed $image
116
     *
117
     * @return Track
118
     */
119
    public function setImage($image)
120
    {
121
        $this->image = $image;
122
123
        return $this;
124
    }
125
126
    /**
127
     * @return mixed
128
     */
129
    public function getUri()
130
    {
131
        return $this->uri;
132
    }
133
134
    /**
135
     * @param mixed $uri
136
     *
137
     * @return Track
138
     */
139
    public function setUri(Uri $uri)
140
    {
141
        $this->uri = $uri;
142
143
        return $this;
144
    }
145
146
    /**
147
     * @return mixed
148
     */
149
    public function getAlbumTrack()
150
    {
151
        return $this->albumTrack;
152
    }
153
154
    /**
155
     * @param mixed $albumTrack
156
     *
157
     * @return Track
158
     */
159
    public function setAlbumTrack($albumTrack)
160
    {
161
        $this->albumTrack = $albumTrack;
162
163
        return $this;
164
    }
165
166
    /**
167
     * @return mixed
168
     */
169
    public function getTrackArtists()
170
    {
171
        return $this->trackArtists;
172
    }
173
174
    /**
175
     * @param mixed $trackArtists
176
     *
177
     * @return Track
178
     */
179
    public function setTrackArtists($trackArtists)
180
    {
181
        $this->trackArtists = $trackArtists;
182
183
        return $this;
184
    }
185
186
    /**
187
     * @return mixed
188
     */
189
    public function getExplicit()
190
    {
191
        return $this->explicit;
192
    }
193
194
    /**
195
     * @param mixed $explicit
196
     *
197
     * @return Track
198
     */
199 2
    public function setExplicit($explicit)
200
    {
201 2
        $this->explicit = $explicit;
202
203 2
        return $this;
204
    }
205
206
    /**
207
     * @return int
208
     */
209
    public function getLength()
210
    {
211
        return $this->length;
212
    }
213
214
    /**
215
     * @param int $length
216
     *
217
     * @return Track
218
     */
219 2
    public function setLength($length)
220
    {
221 2
        $this->length = $length;
222
223 2
        return $this;
224
    }
225
226
    /**
227
     * @return Uri
228
     */
229
    public function getPreviewUri()
230
    {
231
        return $this->preview_uri;
232
    }
233
234
    /**
235
     * @param Uri $preview_uri
236
     *
237
     * @return Track
238
     */
239 2
    public function setPreviewUri(Uri $preview_uri)
240
    {
241 2
        $this->preview_uri = $preview_uri;
242
243 2
        return $this;
244
    }
245
246
}