mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-10-24 11:39:21 +02:00
34 lines
720 B
PHP
34 lines
720 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Definition\Fields\Wiki\ExternalResource;
|
|
|
|
use App\Enums\Models\Wiki\ResourceSite;
|
|
use App\GraphQL\Definition\Fields\EnumField;
|
|
use App\Models\Wiki\ExternalResource;
|
|
|
|
/**
|
|
* Class ExternalResourceSiteField.
|
|
*/
|
|
class ExternalResourceSiteField extends EnumField
|
|
{
|
|
/**
|
|
* Create a new field instance.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct(ExternalResource::ATTRIBUTE_SITE, ResourceSite::class, nullable: false);
|
|
}
|
|
|
|
/**
|
|
* The description of the field.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function description(): string
|
|
{
|
|
return 'The external site that the resource belongs to';
|
|
}
|
|
}
|