clock = $clock; $this->cookieTtl = $cookieTtl; $this->limit = ($limit >= 1) ? $limit : 4; $this->limitTimeout = ($limitTimeout >= 1) ? $limitTimeout : 21600; $this->limitTtl = ($limitTtl >= 1) ? $limitTtl : 86400; $this->queryPrefix = $queryPrefix; $this->totpUri = $totpUri ?: $utilities->loadTotp(); $this->ipTtl = $ipTtl ?: null; $this->staticSecret = $staticSecretEnabled ? ($staticSecret ?: null) : null; $this->teapot = $teapot; $this->errorMessage = $errorMessage; $this->teapotTitle = $teapotTitle; $this->tooManyTitle = $tooManyTitle; } public function clock(): ClockInterface { return $this->clock; } public function cookieTtl(): int { return $this->cookieTtl; } public function limit(): int { return $this->limit; } public function limitTimeout(): int { return $this->limitTimeout; } public function limitTtl(): int { return $this->limitTtl; } public function query(string $field): string { return "$this->queryPrefix$field"; } public function totpUri(): string { return $this->totpUri; } public function ipTtl(): ?int { return $this->ipTtl; } public function staticSecret(): ?string { return $this->staticSecret; } public function teapot(): bool { return $this->teapot; } public function errorMessage(): string { return $this->errorMessage; } public function teapotTitle(): string { return $this->teapotTitle; } public function tooManyTitle(): string { return $this->tooManyTitle; } }