1 | <?php |
||
13 | class Song |
||
14 | { |
||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | protected $id; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $artist; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $title; |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | protected $sourceId; |
||
34 | |||
35 | /** |
||
36 | * Seconds |
||
37 | * |
||
38 | * @var int |
||
39 | */ |
||
40 | protected $duration; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $codeNumber; |
||
46 | |||
47 | /** |
||
48 | * @return int |
||
49 | */ |
||
50 | public function getId() |
||
54 | |||
55 | /** |
||
56 | * @param int $id |
||
57 | * @return Song |
||
58 | */ |
||
59 | public function setId($id) |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getArtist() |
||
72 | |||
73 | /** |
||
74 | * @param string $artist |
||
75 | * @return Song |
||
76 | */ |
||
77 | public function setArtist($artist) |
||
83 | |||
84 | /** |
||
85 | * @return string |
||
86 | */ |
||
87 | public function getTitle() |
||
91 | |||
92 | /** |
||
93 | * @param string $title |
||
94 | * @return Song |
||
95 | */ |
||
96 | public function setTitle($title) |
||
102 | |||
103 | /** |
||
104 | * @return int |
||
105 | */ |
||
106 | public function getSourceId() |
||
110 | |||
111 | /** |
||
112 | * @param int $sourceId |
||
113 | * @return Song |
||
114 | */ |
||
115 | public function setSourceId($sourceId) |
||
120 | |||
121 | /** |
||
122 | * @return int |
||
123 | */ |
||
124 | public function getDuration() |
||
128 | |||
129 | /** |
||
130 | * @param int $duration |
||
131 | * @return Song |
||
132 | */ |
||
133 | public function setDuration($duration) |
||
138 | |||
139 | /** |
||
140 | * @return string |
||
141 | */ |
||
142 | public function getCodeNumber() |
||
146 | |||
147 | /** |
||
148 | * @param string $codeNumber |
||
149 | * @return Song |
||
150 | */ |
||
151 | protected function setCodeNumber($codeNumber) |
||
156 | |||
157 | protected function updateLookupCode() |
||
165 | |||
166 | protected function generateLookupCode($artist, $title) |
||
176 | } |
||
177 |