Documentation

AddRequest
in package
Uses HasAuthenticatedUser, HasUserModel

Override the original class because that always expects an email & password combination Shoutz0r however uses a username & password combination

Table of Contents

$authFactory  : Factory
__construct()  : mixed
__invoke()  : array<string|int, string>
getAuthFactory()  : Factory
isArtistRequestable()  : void
Determines if the artist of the provided media object is requestable ie: no tracks of the artist have been played too recently
isMediaRequestable()  : void
Determines if the provided media object is requestable ie: not requested too recently
userCanRequest()  : void
Determines if the user is able to make a request at this moment ie: requested something too recently

Properties

Methods

__construct()

public __construct(Factory $authFactory) : mixed
Parameters
$authFactory : Factory
Return values
mixed

__invoke()

public __invoke(mixed $_, array<string|int, mixed> $args, GraphQLContext $context, ResolveInfo $resolveInfo) : array<string|int, string>
Parameters
$_ : mixed
$args : array<string|int, mixed>
$context : GraphQLContext
$resolveInfo : ResolveInfo
Return values
array<string|int, string>

getAuthFactory()

protected getAuthFactory() : Factory
Return values
Factory

isArtistRequestable()

Determines if the artist of the provided media object is requestable ie: no tracks of the artist have been played too recently

private isArtistRequestable(Media $media) : void
Parameters
$media : Media
Tags
throws
MediaQueueException
Return values
void

isMediaRequestable()

Determines if the provided media object is requestable ie: not requested too recently

private isMediaRequestable(Media $media) : void
Parameters
$media : Media
Tags
throws
MediaQueueException
Return values
void

userCanRequest()

Determines if the user is able to make a request at this moment ie: requested something too recently

private userCanRequest(User $user) : void
Parameters
$user : User
Tags
throws
MediaQueueException
Return values
void

Search results