AlbumResource
class AlbumResource extends Resource implements AlbumResourceInterface
Album resource for mapping from melon.com.
Properties
| MelonAlbum | $melon | ||
| protected array | $container | from Resource |
Methods
To get resource as array.
Reading data from inaccessible (protected or private) or non-existing properties.
Infer the default image for Melon as null
Get the album ID.
Get the album title.
Get the album cover image path.
Get the release date.
Details
at line 24
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 37
int
getMelonAlbumId()
Get the album ID.
at line 45
string
getTitle()
Get the album title.
at line 53
string|null
getAlbumCoverPath()
Get the album cover image path.
at line 61
string|null
getReleasedAt()
Get the release date.
at line 79
static AlbumResource
make(MelonAlbum $melonAlbum)
Create a new AlbumResource instance.