<?php

namespace App\Modules\Admin\Tenancy\Repositories;

use App\Modules\Admin\Tenancy\Models\PlanLimit;

class PlanLimitRepository
{
    public function findForPlan(int $planId, string $key): ?PlanLimit
    {
        return PlanLimit::query()
            ->where('plan_id', $planId)
            ->where('key', $key)
            ->first();
    }
}
