SongResource
class SongResource extends Resource
Song resource for mapping from melon.com.
Properties
Melon | $melon | from Resource | |
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
static SongResource
Details
at line 19
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 40
static SongResource
make(MelonSong $melonSong)
Create a new SongResource instance.