LookupHandler
extends Handler
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- artist() : Artist|null
- Get artist by ID
- artistAsync() : PromiseInterface
- Get artist by ID asynchronously
- artistReleases() : array<string|int, mixed>|null
- Get artist releases
- artistReleasesAsync() : PromiseInterface
- Get artist releases asynchronously
- canMakeRequest() : bool
- Check if we can make a Discogs request (not rate limited)
- getRateLimitStatus() : array<string|int, mixed>
- Get rate limit status information
- label() : Label|null
- Get label by ID
- labelAsync() : PromiseInterface
- Get label by ID asynchronously
- labelReleases() : array<string|int, mixed>|null
- Get label releases
- labelReleasesAsync() : PromiseInterface
- Get label releases asynchronously
- master() : Master|null
- Get master release by ID
- masterAsync() : PromiseInterface
- Get master release by ID asynchronously
- masterVersions() : array<string|int, mixed>|null
- Get master release versions
- masterVersionsAsync() : PromiseInterface
- Get master release versions asynchronously
- release() : Release|null
- Get release by ID
- releaseAsync() : PromiseInterface
- Get release by ID asynchronously
- fetchEndpoint() : array<string|int, mixed>|null
- fetchEndpointAsync() : PromiseInterface
Properties
$baseUrl read-only
protected
string
$baseUrl
$client read-only
protected
Client
$client
Methods
__construct()
public
__construct(Client $client, string $baseUrl) : mixed
Parameters
- $client : Client
- $baseUrl : string
artist()
Get artist by ID
public
artist(int $id) : Artist|null
Parameters
- $id : int
Return values
Artist|nullartistAsync()
Get artist by ID asynchronously
public
artistAsync(int $id) : PromiseInterface
Parameters
- $id : int
Return values
PromiseInterfaceartistReleases()
Get artist releases
public
artistReleases(int $id[, int $page = 1 ][, int $per_page = 50 ]) : array<string|int, mixed>|null
Parameters
- $id : int
- $page : int = 1
- $per_page : int = 50
Return values
array<string|int, mixed>|nullartistReleasesAsync()
Get artist releases asynchronously
public
artistReleasesAsync(int $id[, int $page = 1 ][, int $per_page = 50 ]) : PromiseInterface
Parameters
- $id : int
- $page : int = 1
- $per_page : int = 50
Return values
PromiseInterfacecanMakeRequest()
Check if we can make a Discogs request (not rate limited)
public
canMakeRequest() : bool
Return values
boolgetRateLimitStatus()
Get rate limit status information
public
getRateLimitStatus() : array<string|int, mixed>
Return values
array<string|int, mixed>label()
Get label by ID
public
label(int $id) : Label|null
Parameters
- $id : int
Return values
Label|nulllabelAsync()
Get label by ID asynchronously
public
labelAsync(int $id) : PromiseInterface
Parameters
- $id : int
Return values
PromiseInterfacelabelReleases()
Get label releases
public
labelReleases(int $id[, int $page = 1 ][, int $per_page = 50 ]) : array<string|int, mixed>|null
Parameters
- $id : int
- $page : int = 1
- $per_page : int = 50
Return values
array<string|int, mixed>|nulllabelReleasesAsync()
Get label releases asynchronously
public
labelReleasesAsync(int $id[, int $page = 1 ][, int $per_page = 50 ]) : PromiseInterface
Parameters
- $id : int
- $page : int = 1
- $per_page : int = 50
Return values
PromiseInterfacemaster()
Get master release by ID
public
master(int $id) : Master|null
Parameters
- $id : int
Return values
Master|nullmasterAsync()
Get master release by ID asynchronously
public
masterAsync(int $id) : PromiseInterface
Parameters
- $id : int
Return values
PromiseInterfacemasterVersions()
Get master release versions
public
masterVersions(int $id[, int $page = 1 ][, int $per_page = 50 ]) : array<string|int, mixed>|null
Parameters
- $id : int
- $page : int = 1
- $per_page : int = 50
Return values
array<string|int, mixed>|nullmasterVersionsAsync()
Get master release versions asynchronously
public
masterVersionsAsync(int $id[, int $page = 1 ][, int $per_page = 50 ]) : PromiseInterface
Parameters
- $id : int
- $page : int = 1
- $per_page : int = 50
Return values
PromiseInterfacerelease()
Get release by ID
public
release(int $id) : Release|null
Parameters
- $id : int
Return values
Release|nullreleaseAsync()
Get release by ID asynchronously
public
releaseAsync(int $id) : PromiseInterface
Parameters
- $id : int
Return values
PromiseInterfacefetchEndpoint()
protected
fetchEndpoint(string $endpoint[, array<string|int, mixed> $params = [] ]) : array<string|int, mixed>|null
Parameters
- $endpoint : string
- $params : array<string|int, mixed> = []
Return values
array<string|int, mixed>|nullfetchEndpointAsync()
protected
fetchEndpointAsync(string $endpoint[, array<string|int, mixed> $params = [] ]) : PromiseInterface
Parameters
- $endpoint : string
- $params : array<string|int, mixed> = []