mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-30 16:16:59 +02:00
34 lines
658 B
PHP
34 lines
658 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Definition\Fields\Response;
|
|
|
|
use App\Contracts\GraphQL\Fields\DisplayableField;
|
|
use App\GraphQL\Definition\Fields\Field;
|
|
use GraphQL\Type\Definition\Type;
|
|
|
|
class MessageResponseField extends Field implements DisplayableField
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct('message');
|
|
}
|
|
|
|
/**
|
|
* The type returned by the field.
|
|
*/
|
|
public function type(): Type
|
|
{
|
|
return Type::string();
|
|
}
|
|
|
|
/**
|
|
* Determine if the field should be displayed to the user.
|
|
*/
|
|
public function canBeDisplayed(): bool
|
|
{
|
|
return true;
|
|
}
|
|
}
|