From b9812ba06ac16899df2a25f0abf25962ae3273f2 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 30 May 2023 08:36:17 +0000 Subject: update composer libs --- vendor/spomky-labs/otphp/src/TOTPInterface.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'vendor/spomky-labs/otphp/src/TOTPInterface.php') diff --git a/vendor/spomky-labs/otphp/src/TOTPInterface.php b/vendor/spomky-labs/otphp/src/TOTPInterface.php index afb54e8e9..47ef16ac0 100644 --- a/vendor/spomky-labs/otphp/src/TOTPInterface.php +++ b/vendor/spomky-labs/otphp/src/TOTPInterface.php @@ -16,7 +16,9 @@ interface TOTPInterface extends OTPInterface * If the secret is null, a random 64 bytes secret will be generated. * * @param null|non-empty-string $secret + * @param positive-int $period * @param non-empty-string $digest + * @param positive-int $digits * * @deprecated Deprecated since v11.1, use ::createFromSecret or ::generate instead */ @@ -27,21 +29,37 @@ interface TOTPInterface extends OTPInterface int $digits = self::DEFAULT_DIGITS ): self; + /** + * @param positive-int $period + */ public function setPeriod(int $period): void; + /** + * @param 0|positive-int $epoch + */ public function setEpoch(int $epoch): void; /** * Return the TOTP at the current time. + * + * @return non-empty-string */ public function now(): string; /** * Get the period of time for OTP generation (a non-null positive integer, in second). + * + * @return positive-int */ public function getPeriod(): int; + /** + * @return 0|positive-int + */ public function expiresIn(): int; + /** + * @return 0|positive-int + */ public function getEpoch(): int; } -- cgit v1.2.3