Repo Interface für tests

This commit is contained in:
2026-03-05 08:26:51 +01:00
parent 8f4dd5840d
commit 4b31fc7664
171 changed files with 3518 additions and 2297 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace MintyPHP\Repository\Security;
interface RateLimitRepositoryInterface
{
public function findByScopeAndHash(string $scope, string $subjectHash): ?array;
public function create(
string $scope,
string $subjectHash,
int $hits,
string $windowStartedAt,
?string $blockedUntil
): bool;
public function updateStateById(
int $id,
int $hits,
string $windowStartedAt,
?string $blockedUntil
): bool;
public function deleteByScopeAndHash(string $scope, string $subjectHash): bool;
}