<?php

declare(strict_types=1);

final class ProtectedRoute
{
    public static function requireLogin(): void
    {
        auth_start_session();
        auth_require_login();
    }

    public static function requireRole(array $roles): void
    {
        auth_start_session();
        auth_require_role($roles);
    }
}
