ArtistResource
class ArtistResource extends Resource implements ArtistResourceInterface
Artist resource for mapping from melon.com.
Properties
| MelonArtist | $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 artist ID.
Get the artist name.
Get the featured image path.
Get the profile image path.
Get the debut date.
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 42
int
getMelonArtistId()
Get the artist ID.
at line 50
string
getName()
Get the artist name.
at line 58
string|null
getFeaturedImagePath()
Get the featured image path.
at line 66
string|null
getProfileImagePath()
Get the profile image path.
at line 74
string|null
getDebut()
Get the debut date.
at line 90
static ArtistResource
make(MelonArtist $melonArtist)
Create a new ArtistResource instance.