mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-10-25 02:59:28 +01:00
34 lines
637 B
PHP
34 lines
637 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Definition\Fields\Wiki\Video;
|
|
|
|
use App\Enums\Models\Wiki\VideoSource;
|
|
use App\GraphQL\Definition\Fields\EnumField;
|
|
use App\Models\Wiki\Video;
|
|
|
|
/**
|
|
* Class VideoSourceField.
|
|
*/
|
|
class VideoSourceField extends EnumField
|
|
{
|
|
/**
|
|
* Create a new field instance.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct(Video::ATTRIBUTE_SOURCE, VideoSource::class);
|
|
}
|
|
|
|
/**
|
|
* The description of the field.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function description(): string
|
|
{
|
|
return 'Where did this video come from?';
|
|
}
|
|
}
|