-
Notifications
You must be signed in to change notification settings - Fork 2
/
debug.php
37 lines (32 loc) · 1012 Bytes
/
debug.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
class AudioStationResult {
private $items;
public function __construct() {
$this->items = array();
}
public function addTrackInfoToList($artist, $title, $id, $partialLyric) {
printf("\nartist = %s\n", $artist);
printf("title = %s\n", $title);
printf("id = %s\n", $id);
printf("partialLyric = %s\n", $partialLyric);
array_push($this->items, array(
'artist' => $artist,
'title' => $title,
'id' => $id,
'partialLyric' => $partialLyric,
));
}
public function addLyrics($lyric, $id) {
printf("\nsong id: %s\n", $id);
printf("song lyric:\n");
printf("***** BEGIN OF LYRIC *****\n");
printf("%s\n", $lyric);
printf("***** END OF LYRIC *****\n");
}
public function getFirstItem() {
if (count($this->items) > 0) {
return $this->items[0];
}
return null;
}
}