Completed
Push — id3-metadata-objects ( 161f4c...a3a88a )
by Daniel
03:11
created

Tag   A

Complexity

Total Complexity 14

Size/Duplication

Total Lines 191
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 14
c 1
b 1
f 0
lcom 0
cbo 0
dl 0
loc 191
rs 10

14 Methods

Rating   Name   Duplication   Size   Complexity  
A getTitle() 0 4 1
A setTitle() 0 6 1
A getArtist() 0 4 1
A setArtist() 0 6 1
A getAlbum() 0 4 1
A setAlbum() 0 6 1
A getYear() 0 4 1
A setYear() 0 6 1
A getComment() 0 4 1
A setComment() 0 6 1
A getTrack() 0 4 1
A setTrack() 0 6 1
A getGenre() 0 4 1
A setGenre() 0 6 1
1
<?php
2
/**
3
 * This file is part of the Metadata package.
4
 *
5
 * @author Daniel Schröder <[email protected]>
6
 */
7
8
namespace GravityMedia\Metadata\Metadata;
9
10
/**
11
 * Metadata tag.
12
 *
13
 * @package GravityMedia\Metadata\Metadata
14
 */
15
class Tag implements TagInterface
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $title;
21
22
    /**
23
     * @var string
24
     */
25
    protected $artist;
26
27
    /**
28
     * @var string
29
     */
30
    protected $album;
31
32
    /**
33
     * @var int
34
     */
35
    protected $year;
36
37
    /**
38
     * @var string
39
     */
40
    protected $comment;
41
42
    /**
43
     * @var int
44
     */
45
    protected $track;
46
47
    /**
48
     * @var string
49
     */
50
    protected $genre;
51
52
    /**
53
     * {@inheritdoc}
54
     */
55
    public function getTitle()
56
    {
57
        return $this->title;
58
    }
59
60
    /**
61
     * Set title.
62
     *
63
     * @param string $title The title.
64
     *
65
     * @return $this
66
     */
67
    public function setTitle($title)
68
    {
69
        $this->title = $title;
70
71
        return $this;
72
    }
73
74
    /**
75
     * {@inheritdoc}
76
     */
77
    public function getArtist()
78
    {
79
        return $this->artist;
80
    }
81
82
    /**
83
     * Set artist.
84
     *
85
     * @param string $artist The artist.
86
     *
87
     * @return $this
88
     */
89
    public function setArtist($artist)
90
    {
91
        $this->artist = $artist;
92
93
        return $this;
94
    }
95
96
    /**
97
     * {@inheritdoc}
98
     */
99
    public function getAlbum()
100
    {
101
        return $this->album;
102
    }
103
104
    /**
105
     * Set album.
106
     *
107
     * @param string $album The album.
108
     *
109
     * @return $this
110
     */
111
    public function setAlbum($album)
112
    {
113
        $this->album = $album;
114
115
        return $this;
116
    }
117
118
    /**
119
     * {@inheritdoc}
120
     */
121
    public function getYear()
122
    {
123
        return $this->year;
124
    }
125
126
    /**
127
     * Set year.
128
     *
129
     * @param int $year The year.
130
     *
131
     * @return $this
132
     */
133
    public function setYear($year)
134
    {
135
        $this->year = $year;
136
137
        return $this;
138
    }
139
140
    /**
141
     * {@inheritdoc}
142
     */
143
    public function getComment()
144
    {
145
        return $this->comment;
146
    }
147
148
    /**
149
     * Set comment.
150
     *
151
     * @param string $comment The comment.
152
     *
153
     * @return $this
154
     */
155
    public function setComment($comment)
156
    {
157
        $this->comment = $comment;
158
159
        return $this;
160
    }
161
162
    /**
163
     * {@inheritdoc}
164
     */
165
    public function getTrack()
166
    {
167
        return $this->track;
168
    }
169
170
    /**
171
     * Set track.
172
     *
173
     * @param int $track The track.
174
     *
175
     * @return $this
176
     */
177
    public function setTrack($track)
178
    {
179
        $this->track = $track;
180
181
        return $this;
182
    }
183
184
    /**
185
     * {@inheritdoc}
186
     */
187
    public function getGenre()
188
    {
189
        return $this->genre;
190
    }
191
192
    /**
193
     * Set genre.
194
     *
195
     * @param string $genre The genre.
196
     *
197
     * @return $this
198
     */
199
    public function setGenre($genre)
200
    {
201
        $this->genre = $genre;
202
203
        return $this;
204
    }
205
}
206