mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
34 lines
723 B
PHP
34 lines
723 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Schema\Fields\Wiki\Video\VideoScript;
|
|
|
|
use App\Contracts\GraphQL\Fields\DisplayableField;
|
|
use App\GraphQL\Schema\Fields\Field;
|
|
use App\Models\Wiki\Video\VideoScript;
|
|
use GraphQL\Type\Definition\Type;
|
|
|
|
class VideoScriptLinkField extends Field implements DisplayableField
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct(VideoScript::ATTRIBUTE_LINK, nullable: false);
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'The URL to download the file from storage';
|
|
}
|
|
|
|
public function baseType(): Type
|
|
{
|
|
return Type::string();
|
|
}
|
|
|
|
public function canBeDisplayed(): bool
|
|
{
|
|
return true;
|
|
}
|
|
}
|