Master
extends Model
in package
Table of Contents
Properties
- $artists : array<string|int, mixed>|null
- $cover_image : string|null
- $data_quality : string|null
- $genres : array<string|int, mixed>|null
- $id : int|null
- $images : array<string|int, mixed>|null
- $lowest_price : float|null
- $main_release : string|null
- $main_release_url : string|null
- $notes : string|null
- $num_for_sale : int|null
- $resource_url : string|null
- $styles : array<string|int, mixed>|null
- $thumbnail : string|null
- $title : string|null
- $tracklist : array<string|int, mixed>|null
- $type : string|null
- $uri : string|null
- $versions_count : int|null
- $videos : array<string|int, mixed>|null
- $year : int|null
Methods
- __construct() : mixed
- fromApiData() : static
- Create a new model instance from API data
Properties
$artists
public
array<string|int, mixed>|null
$artists
= null
$cover_image
public
string|null
$cover_image
= null
$data_quality
public
string|null
$data_quality
= null
$genres
public
array<string|int, mixed>|null
$genres
= null
$id
public
int|null
$id
= null
$images
public
array<string|int, mixed>|null
$images
= null
$lowest_price
public
float|null
$lowest_price
= null
$main_release
public
string|null
$main_release
= null
$main_release_url
public
string|null
$main_release_url
= null
$notes
public
string|null
$notes
= null
$num_for_sale
public
int|null
$num_for_sale
= null
$resource_url
public
string|null
$resource_url
= null
$styles
public
array<string|int, mixed>|null
$styles
= null
$thumbnail
public
string|null
$thumbnail
= null
$title
public
string|null
$title
= null
$tracklist
public
array<string|int, mixed>|null
$tracklist
= null
$type
public
string|null
$type
= null
$uri
public
string|null
$uri
= null
$versions_count
public
int|null
$versions_count
= null
$videos
public
array<string|int, mixed>|null
$videos
= null
$year
public
int|null
$year
= null
Methods
__construct()
public
__construct([int|null $id = null ][, string|null $title = null ][, string|null $uri = null ][, string|null $resource_url = null ][, string|null $type = null ][, string|null $thumbnail = null ][, string|null $cover_image = null ][, array<string|int, mixed>|null $images = null ][, array<string|int, mixed>|null $artists = null ][, array<string|int, mixed>|null $tracklist = null ][, array<string|int, mixed>|null $videos = null ][, array<string|int, mixed>|null $genres = null ][, array<string|int, mixed>|null $styles = null ][, int|null $year = null ][, string|null $data_quality = null ][, int|null $versions_count = null ][, string|null $main_release = null ][, string|null $main_release_url = null ][, string|null $notes = null ][, int|null $num_for_sale = null ][, float|null $lowest_price = null ]) : mixed
Parameters
- $id : int|null = null
- $title : string|null = null
- $uri : string|null = null
- $resource_url : string|null = null
- $type : string|null = null
- $thumbnail : string|null = null
- $cover_image : string|null = null
- $images : array<string|int, mixed>|null = null
- $artists : array<string|int, mixed>|null = null
- $tracklist : array<string|int, mixed>|null = null
- $videos : array<string|int, mixed>|null = null
- $genres : array<string|int, mixed>|null = null
- $styles : array<string|int, mixed>|null = null
- $year : int|null = null
- $data_quality : string|null = null
- $versions_count : int|null = null
- $main_release : string|null = null
- $main_release_url : string|null = null
- $notes : string|null = null
- $num_for_sale : int|null = null
- $lowest_price : float|null = null
fromApiData()
Create a new model instance from API data
public
static fromApiData(array<string|int, mixed> $data) : static
Parameters
- $data : array<string|int, mixed>
-
API response data