WaterMelon
class WaterMelon
Fetch all information about a song, song's albums and song's artists from the melon.com API.
Properties
| SongInterface | $song | ||
| AlbumInterface | $album | ||
| ArtistInterface[] | $artists |
Methods
static WaterMelon
make(int $songId, Client|null $client = null)
Create a new WaterMelon instance from a song ID.
parse()
To get a instance of the WaterMelon class after fetching information about a song from the melon.com API.
getSong()
Getter to get a information about a song.
getAlbum()
Getter to get a information about a album.
array
getArtists()
Getter to get a information about artists.
Details
at line 35
__construct(SongInterface $song, AlbumInterface $album, array $artists = [])
Constructor.
at line 51
static WaterMelon
make(int $songId, Client|null $client = null)
Create a new WaterMelon instance from a song ID.
at line 66
WaterMelon
parse()
To get a instance of the WaterMelon class after fetching information about a song from the melon.com API.
at line 82
SongInterface
getSong()
Getter to get a information about a song.
at line 92
AlbumInterface
getAlbum()
Getter to get a information about a album.
at line 104
array
getArtists()
Getter to get a information about artists.