MelonArtist
class MelonArtist extends Melon implements ArtistInterface
Fetches information about a artist from the melon.com API.
Properties
| int | $id | from Melon | |
| protected Client | $client | from Melon | |
| protected array | $response | from Melon |
Methods
Fetches information about a song, a album or a artist from the melon.com API and saves it to $response and returns it.
Class constructor.
Class factory to make Melon instance.
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 birth date.
Get the debut date.
Get the agency.
Get the genre.
Details
at line 21
array
parse()
Fetches information about a song, a album or a artist from the melon.com API and saves it to $response and returns it.
in
Melon at line 38
__construct(int $id, Client|null $client = null, bool $autoParse = true)
Class constructor.
in
Melon at line 56
void
offsetSet(mixed $offset, mixed $value)
Setter for ArrayAccess.
in
Melon at line 68
bool
offsetExists(mixed $offset)
Whether an offset exists
in
Melon at line 76
void
offsetUnset(mixed $offset)
Unset an offset
in
Melon at line 84
mixed
offsetGet(mixed $offset)
Offset to retrieve
in
Melon at line 96
static Melon
make(int $id, Client|null $client = null, bool $autoParse = true)
Class factory to make Melon instance.
in
Melon at line 109
static string|null
emptyToNull(string|null $path)
Infer the default image for Melon as null
at line 56
int
getId()
Get the artist ID.
at line 64
string
getName()
Get the artist name.
at line 72
string|null
getFeaturedImagePath()
Get the featured image path.
at line 80
string|null
getProfileImagePath()
Get the profile image path.
at line 88
string|null
getBirth()
Get the birth date.
at line 96
string|null
getDebut()
Get the debut date.
at line 104
string|null
getAgency()
Get the agency.
at line 112
string|null
getGenre()
Get the genre.