<?php

declare(strict_types=1);

namespace App\Services;

use App\Repositories\DashboardRepository;

final class DashboardService
{
    public function __construct(private ?DashboardRepository $dashboard = null)
    {
        $this->dashboard ??= new DashboardRepository();
    }

    public function overview(?int $therapistId = null): array
    {
        return $this->dashboard->overview($therapistId);
    }
}
