mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-10-01 00:26:55 +02:00
25 lines
532 B
PHP
25 lines
532 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Definition\Fields\Auth\Role;
|
|
|
|
use App\GraphQL\Definition\Fields\IntField;
|
|
use App\Models\Auth\Role;
|
|
|
|
class RolePriorityField extends IntField
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct(Role::ATTRIBUTE_PRIORITY, nullable: false);
|
|
}
|
|
|
|
/**
|
|
* The description of the field.
|
|
*/
|
|
public function description(): string
|
|
{
|
|
return 'The weight assigned to the resource, where higher values correspond to higher priority';
|
|
}
|
|
}
|