Index
A
- AlbumNullResource — Class in namespace Cable8mm\WaterMelon\Resources
Album resource with null for mapping from melon.com.
- AlbumResource — Class in namespace Cable8mm\WaterMelon\Resources
Album resource for mapping from melon.com.
- ArtistNullResource — Class in namespace Cable8mm\WaterMelon\Resources
Artist resource with null for mapping from melon.com.
- ArtistResource — Class in namespace Cable8mm\WaterMelon\Resources
Artist resource for mapping from melon.com.
- $ WaterMelon#album — Property in class WaterMelon
$var MelonAlbum $album Melon album.
- $ WaterMelon#artists — Property in class WaterMelon
C
- $ Resource#container — Property in class Resource
E
- Resource::emptyToNull() — Method in class Resource
Infer the default image for Melon as null
G
- WaterMelon::getSong() — Method in class WaterMelon
Getter to get a information about a song.
- WaterMelon::getAlbum() — Method in class WaterMelon
Getter to get a information about a album.
- WaterMelon::getArtists() — Method in class WaterMelon
Getter to get a information about artists.
I
M
- Melon — Class in namespace Cable8mm\WaterMelon
Abstract class for WaterMelon classes.
- Melon::make() — Method in class Melon
Class factory to make Melon instance.
- MelonAlbum — Class in namespace Cable8mm\WaterMelon
Fetches information about a album from the melon.com API.
- MelonArtist — Class in namespace Cable8mm\WaterMelon
Fetches information about a artist from the melon.com API.
- MelonSong — Class in namespace Cable8mm\WaterMelon
Fetches information about a song from the melon.com API.
- AlbumNullResource::make() — Method in class AlbumNullResource
Create a new AlbumNullResource instance.
- AlbumResource::make() — Method in class AlbumResource
Create a new AlbumResource instance.
- ArtistNullResource::make() — Method in class ArtistNullResource
Create a new ArtistNullResource instance.
- ArtistResource::make() — Method in class ArtistResource
Create a new ArtistResource instance.
- $ Resource#melon — Property in class Resource
- SongNullResource::make() — Method in class SongNullResource
Create a new SongNullResource instance.
- SongResource::make() — Method in class SongResource
Create a new SongResource instance.
- Makeable — Class in namespace Cable8mm\WaterMelon\Traits
Factory class for creating traits.
- Makeable::make() — Method in class Makeable
Create a new instance.
O
- Melon::offsetSet() — Method in class Melon
Setter for ArrayAccess.
- Melon::offsetExists() — Method in class Melon
Whether an offset exists
- Melon::offsetUnset() — Method in class Melon
Unset an offset
- Melon::offsetGet() — Method in class Melon
Offset to retrieve
- Resource::offsetSet() — Method in class Resource
ArrayAccess implementation.
- Resource::offsetExists() — Method in class Resource
ArrayAccess implementation.
- Resource::offsetUnset() — Method in class Resource
ArrayAccess implementation.
- Resource::offsetGet() — Method in class Resource
ArrayAccess implementation.
P
- Melon::parse() — Method in class Melon
Fetches information about a song, a album or a artist from the melon.com API and saves it to $response and returns it.
- MelonAlbum::parse() — Method in class MelonAlbum
Fetches information about a song, a album or a artist from the melon.com API and saves it to $response and returns it.
- MelonArtist::parse() — Method in class MelonArtist
Fetches information about a song, a album or a artist from the melon.com API and saves it to $response and returns it.
- MelonSong::parse() — Method in class MelonSong
Fetches information about a song, a album or a artist from the melon.com API and saves it to $response and returns it.
- WaterMelon::parse() — Method in class WaterMelon
To get a instance of the WaterMelon class after fetching information about a song from the melon.com API.
R
- $ Melon#response — Property in class Melon
- Resource — Class in namespace Cable8mm\WaterMelon\Resources
Resource class for general melon resources.
S
- SongNullResource — Class in namespace Cable8mm\WaterMelon\Resources
Song resource with null for mapping from melon.com.
- SongResource — Class in namespace Cable8mm\WaterMelon\Resources
Song resource for mapping from melon.com.
- $ WaterMelon#song — Property in class WaterMelon
T
- AlbumNullResource::toArray() — Method in class AlbumNullResource
To get resource as array.
- AlbumResource::toArray() — Method in class AlbumResource
To get resource as array.
- ArtistNullResource::toArray() — Method in class ArtistNullResource
To get resource as array.
- ArtistResource::toArray() — Method in class ArtistResource
To get resource as array.
- Resource::toArray() — Method in class Resource
To get resource as array.
- SongNullResource::toArray() — Method in class SongNullResource
To get resource as array.
- SongResource::toArray() — Method in class SongResource
To get resource as array.
W
- WaterMelon — Class in namespace Cable8mm\WaterMelon
Fetch all information about a song, song's albums and song's artists from the melon.com API.
_
- Melon::__construct() — Method in class Melon
Class constructor.
- Resource::__construct() — Method in class Resource
- Constructor.
- Resource::__get() — Method in class Resource
Reading data from inaccessible (protected or private) or non-existing properties.
- WaterMelon::__construct() — Method in class WaterMelon
- Constructor.