<?php

declare(strict_types=1);

namespace App\Module\TimeTracking;

use App\Shared\Domain\Module\ModuleInterface;

final class TimeTrackingModule implements ModuleInterface
{
    public static function id(): string
    {
        return 'time-tracking';
    }

    public static function label(): string
    {
        return 'Suivi des temps';
    }

    public static function isRequired(): bool
    {
        return false;
    }

    /**
     * Permissions RBAC fin du Module TimeTracking (2.1).
     *
     * @return list<array{code: string, label: string}>
     */
    public static function permissions(): array
    {
        return [
            ['code' => 'time-tracking.entries.view', 'label' => 'Voir les saisies de temps'],
            ['code' => 'time-tracking.entries.manage', 'label' => 'Gérer les saisies de temps'],
            ['code' => 'time-tracking.entries.export', 'label' => 'Exporter les saisies de temps'],
        ];
    }
}
