Files
animethemes-server/app/GraphQL/Schema/Fields/Auth/Role/RolePriorityField.php
T
2026-01-30 20:56:59 -03:00

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';
}
}