SongResource
class SongResource extends Resource implements SongResourceInterface
Song resource for mapping from melon.com.
Properties
| MelonSong | $melon | ||
| protected array | $container | from Resource |
Methods
array
toArray()
To get resource as array.
mixed
__get(mixed $name)
Reading data from inaccessible (protected or private) or non-existing properties.
from
Resource
static string|null
emptyToNull(string|null $path)
Infer the default image for Melon as null
from
Resource
int
getMelonSongId()
Get the song ID.
string
getTitle()
Get the song title.
int
getAlbumId()
Get the album ID.
string|null
getArtworkImagePath()
Get the artwork image path.
static SongResource
Details
at line 22
array
toArray()
To get resource as array.
in
Resource at line 41
mixed
__get(mixed $name)
Reading data from inaccessible (protected or private) or non-existing properties.
in
Resource at line 49
void
offsetSet(mixed $offset, mixed $value)
ArrayAccess implementation.
in
Resource at line 61
bool
offsetExists(mixed $offset)
ArrayAccess implementation.
in
Resource at line 69
void
offsetUnset(mixed $offset)
ArrayAccess implementation.
in
Resource at line 77
mixed
offsetGet(mixed $offset)
ArrayAccess implementation.
in
Resource at line 90
static string|null
emptyToNull(string|null $path)
Infer the default image for Melon as null
at line 35
int
getMelonSongId()
Get the song ID.
at line 43
string
getTitle()
Get the song title.
at line 51
int
getAlbumId()
Get the album ID.
at line 59
string|null
getArtworkImagePath()
Get the artwork image path.
at line 75
static SongResource
make(MelonSong $melonSong)
Create a new SongResource instance.