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