Skip to content
Corex

Confirmation

Corex\Operations\Confirmation · class · Core layer

Actor- and target-bound, expiring, single-use confirmation for sensitive work.

__construct(string $operationKind, string $targetHash, int $actorId, DateTimeImmutable $expiresAt, ?string $requiredPhrase, ?DateTimeImmutable $usedAt)

Section titled “__construct(string $operationKind, string $targetHash, int $actorId, DateTimeImmutable $expiresAt, ?string $requiredPhrase, ?DateTimeImmutable $usedAt)”

verify(string $operationKind, string $targetHash, int $actorId, ?string $phrase, DateTimeImmutable $now): bool

Section titled “verify(string $operationKind, string $targetHash, int $actorId, ?string $phrase, DateTimeImmutable $now): bool”