<?php

namespace MintyPHP\Service\Security;

use MintyPHP\Repository\Security\RateLimitRepository;
use MintyPHP\Repository\Security\RateLimitRepositoryInterface;

class SecurityRepositoryFactory
{
    private ?RateLimitRepository $rateLimitRepository = null;

    public function createRateLimitRepository(): RateLimitRepositoryInterface
    {
        return $this->rateLimitRepository ??= new RateLimitRepository();
    }
}
