mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
22 lines
407 B
PHP
22 lines
407 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Schema\Fields\Auth\User\Me;
|
|
|
|
use App\GraphQL\Schema\Fields\StringField;
|
|
use App\Models\Auth\User;
|
|
|
|
class MeEmailField extends StringField
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct(User::ATTRIBUTE_EMAIL, nullable: false);
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'The email of the user';
|
|
}
|
|
}
|