<?php

declare(strict_types=1);

namespace App\Controllers;

use App\Modules\Reporting\Presentation\Controllers\AlertsDashboardController as ModuleAlertsDashboardController;

final class AlertsDashboardController
{
    public function __construct(private ?ModuleAlertsDashboardController $controller = null)
    {
        $this->controller ??= new ModuleAlertsDashboardController();
    }

    public function index(): void
    {
        $this->controller->index();
    }

    public function handle(): void
    {
        $this->index();
    }
}
