Skip to content
Corex

AccessRequestRepository

Corex\Config\Access\AccessRequestRepository · class · Config layer

Persists terminal, append-history access request decisions.

createUnlessPending(int $requesterId, ?string $abilityKey, ?string $areaKey, string $reason, DateTimeImmutable $createdAt, DateTimeImmutable $expiresAt): ?int

Section titled “createUnlessPending(int $requesterId, ?string $abilityKey, ?string $areaKey, string $reason, DateTimeImmutable $createdAt, DateTimeImmutable $expiresAt): ?int”

transition(int $id, string $state, int $reviewerId, string $note, DateTimeImmutable $reviewedAt): bool

Section titled “transition(int $id, string $state, int $reviewerId, string $note, DateTimeImmutable $reviewedAt): bool”

pendingFor(int $requesterId, ?string $abilityKey, ?string $areaKey): ?array

Section titled “pendingFor(int $requesterId, ?string $abilityKey, ?string $areaKey): ?array”

approve(int $id, int $reviewerId, string $note, DateTimeImmutable $reviewedAt, DateTimeImmutable $grantExpiresAt): bool

Section titled “approve(int $id, int $reviewerId, string $note, DateTimeImmutable $reviewedAt, DateTimeImmutable $grantExpiresAt): bool”

endGrant(int $id, string $reason, ?int $endedBy, DateTimeImmutable $endedAt): bool

Section titled “endGrant(int $id, string $reason, ?int $endedBy, DateTimeImmutable $endedAt): bool”

expiredGrants(DateTimeImmutable $now): array

Section titled “expiredGrants(DateTimeImmutable $now): array”

cancel(int $id, string $reason, DateTimeImmutable $cancelledAt): bool

Section titled “cancel(int $id, string $reason, DateTimeImmutable $cancelledAt): bool”