<?php

declare(strict_types=1);

namespace App\Scolarite\Infrastructure\Api\Resource;

use ApiPlatform\Metadata\ApiProperty;
use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\GetCollection;
use App\Scolarite\Infrastructure\Api\Provider\CompetencyLevelCollectionProvider;

#[ApiResource(
    shortName: 'CompetencyLevel',
    operations: [
        new GetCollection(
            uriTemplate: '/competency-levels',
            provider: CompetencyLevelCollectionProvider::class,
            name: 'get_competency_level_list',
        ),
    ],
)]
final class CompetencyLevelResource
{
    #[ApiProperty(identifier: true)]
    public ?string $code = null;

    public ?string $name = null;

    public ?string $color = null;

    public int $sortOrder = 0;
}
