<?php

namespace App\Modules\Admin\Tenancy\Repositories;

use App\Modules\Customization\CustomFields\Repositories\CustomFieldRepository;
use App\Modules\HR\Employees\Repositories\EmployeeRepository;

class PlanLimitUsageRepository
{
    public function __construct(
        private readonly EmployeeRepository $employees,
        private readonly CustomFieldRepository $customFields,
    ) {}

    public function countEmployeesForTenant(int $tenantId): int
    {
        return $this->employees->countForTenant($tenantId);
    }

    public function countActiveCustomFieldsForTenant(int $tenantId): int
    {
        return $this->customFields->countActiveForTenant($tenantId);
    }
}
