Bånder

SearchHandler extends Handler
in package

Table of Contents

Properties

$baseUrl  : string
$client  : Client
$lastPagination  : array<string|int, mixed>|null

Methods

__construct()  : mixed
artist()  : Collection
Search for artists and return models
artistAsync()  : PromiseInterface
Search for artists asynchronously
artistRaw()  : array<string|int, mixed>
Get raw API response for artists (for backward compatibility)
artistRawAsync()  : PromiseInterface
Get raw API response for artists asynchronously
canMakeRequest()  : bool
Check if we can make a Discogs request (not rate limited)
getPagination()  : array<string|int, mixed>|null
Get pagination information from the last search
getRateLimitStatus()  : array<string|int, mixed>
Get rate limit status information
label()  : Collection
Search for labels and return models
labelAsync()  : PromiseInterface
Search for labels asynchronously
labelRawAsync()  : PromiseInterface
Get raw API response for labels asynchronously
master()  : Collection
Search for master releases and return models
masterAsync()  : PromiseInterface
Search for master releases asynchronously
masterRawAsync()  : PromiseInterface
Get raw API response for masters asynchronously
release()  : Collection
Search for releases and return models
releaseAsync()  : PromiseInterface
Search for releases asynchronously
releaseRaw()  : array<string|int, mixed>
Get raw API response for releases (for backward compatibility)
releaseRawAsync()  : PromiseInterface
Get raw API response for releases asynchronously
searchWithPagination()  : array<string|int, mixed>
Search with full pagination info
searchWithPaginationAsync()  : PromiseInterface
Search with full pagination info asynchronously
fetchEndpoint()  : array<string|int, mixed>|null
fetchEndpointAsync()  : PromiseInterface

Properties

$baseUrl read-only

protected string $baseUrl

$client read-only

protected Client $client

$lastPagination

private array<string|int, mixed>|null $lastPagination = null

Methods

__construct()

public __construct(Client $client, string $baseUrl) : mixed
Parameters
$client : Client
$baseUrl : string

artistAsync()

Search for artists asynchronously

public artistAsync(mixed $filter) : PromiseInterface
Parameters
$filter : mixed
Return values
PromiseInterface

artistRaw()

Get raw API response for artists (for backward compatibility)

public artistRaw(mixed $filter) : array<string|int, mixed>
Parameters
$filter : mixed
Return values
array<string|int, mixed>

artistRawAsync()

Get raw API response for artists asynchronously

public artistRawAsync(mixed $filter) : PromiseInterface
Parameters
$filter : mixed
Return values
PromiseInterface

canMakeRequest()

Check if we can make a Discogs request (not rate limited)

public canMakeRequest() : bool
Return values
bool

getPagination()

Get pagination information from the last search

public getPagination() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getRateLimitStatus()

Get rate limit status information

public getRateLimitStatus() : array<string|int, mixed>
Return values
array<string|int, mixed>

label()

Search for labels and return models

public label(mixed $filter) : Collection
Parameters
$filter : mixed
Return values
Collection

labelAsync()

Search for labels asynchronously

public labelAsync(mixed $filter) : PromiseInterface
Parameters
$filter : mixed
Return values
PromiseInterface

labelRawAsync()

Get raw API response for labels asynchronously

public labelRawAsync(mixed $filter) : PromiseInterface
Parameters
$filter : mixed
Return values
PromiseInterface

master()

Search for master releases and return models

public master(mixed $filter) : Collection
Parameters
$filter : mixed
Return values
Collection

masterAsync()

Search for master releases asynchronously

public masterAsync(mixed $filter) : PromiseInterface
Parameters
$filter : mixed
Return values
PromiseInterface

masterRawAsync()

Get raw API response for masters asynchronously

public masterRawAsync(mixed $filter) : PromiseInterface
Parameters
$filter : mixed
Return values
PromiseInterface

release()

Search for releases and return models

public release(mixed $filter) : Collection
Parameters
$filter : mixed
Return values
Collection

releaseAsync()

Search for releases asynchronously

public releaseAsync(mixed $filter) : PromiseInterface
Parameters
$filter : mixed
Return values
PromiseInterface

releaseRaw()

Get raw API response for releases (for backward compatibility)

public releaseRaw(mixed $filter) : array<string|int, mixed>
Parameters
$filter : mixed
Return values
array<string|int, mixed>

releaseRawAsync()

Get raw API response for releases asynchronously

public releaseRawAsync(mixed $filter) : PromiseInterface
Parameters
$filter : mixed
Return values
PromiseInterface

searchWithPagination()

Search with full pagination info

public searchWithPagination(string $type, mixed $filter) : array<string|int, mixed>
Parameters
$type : string
$filter : mixed
Return values
array<string|int, mixed>

searchWithPaginationAsync()

Search with full pagination info asynchronously

public searchWithPaginationAsync(string $type, mixed $filter) : PromiseInterface
Parameters
$type : string
$filter : mixed
Return values
PromiseInterface

fetchEndpoint()

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>|null

fetchEndpointAsync()

protected fetchEndpointAsync(string $endpoint[, array<string|int, mixed> $params = [] ]) : PromiseInterface
Parameters
$endpoint : string
$params : array<string|int, mixed> = []
Return values
PromiseInterface

        
On this page

Search results