mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-10-24 19:49:24 +02:00
33 lines
665 B
PHP
33 lines
665 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Definition\Fields\Wiki\ExternalResource;
|
|
|
|
use App\GraphQL\Definition\Fields\IntField;
|
|
use App\Models\Wiki\ExternalResource;
|
|
|
|
/**
|
|
* Class ExternalResourceExternalIdField.
|
|
*/
|
|
class ExternalResourceExternalIdField extends IntField
|
|
{
|
|
/**
|
|
* Create a new field instance.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct(ExternalResource::ATTRIBUTE_EXTERNAL_ID);
|
|
}
|
|
|
|
/**
|
|
* The description of the field.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function description(): string
|
|
{
|
|
return 'The primary key of the resource in the external site';
|
|
}
|
|
}
|