mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-24 13:26:07 +02:00
33 lines
606 B
PHP
33 lines
606 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Schema\Fields\Wiki\Audio;
|
|
|
|
use App\GraphQL\Schema\Fields\Field;
|
|
use App\Models\Wiki\Audio;
|
|
use GraphQL\Type\Definition\Type;
|
|
|
|
class AudioLinkField extends Field
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct(Audio::ATTRIBUTE_LINK, nullable: false);
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'The URL to stream the file from storage';
|
|
}
|
|
|
|
public function baseType(): Type
|
|
{
|
|
return Type::string();
|
|
}
|
|
|
|
public function canBeDisplayed(): bool
|
|
{
|
|
return true;
|
|
}
|
|
}
|