![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/medad.corals.io/vendor/kreait/firebase-tokens/src/JWT/Action/ |
<?php declare(strict_types=1); namespace Kreait\Firebase\JWT\Action; use InvalidArgumentException; final class VerifySessionCookie { private string $sessionCookie = ''; private int $leewayInSeconds = 0; private ?string $expectedTenantId = null; private function __construct() { } public static function withSessionCookie(string $sessionCookie): self { $action = new self(); $action->sessionCookie = $sessionCookie; return $action; } public function withExpectedTenantId(string $tenantId): self { $action = clone $this; $action->expectedTenantId = $tenantId; return $action; } public function withLeewayInSeconds(int $seconds): self { if ($seconds < 0) { throw new InvalidArgumentException('Leeway must not be negative'); } $action = clone $this; $action->leewayInSeconds = $seconds; return $action; } public function sessionCookie(): string { return $this->sessionCookie; } public function expectedTenantId(): ?string { return $this->expectedTenantId; } public function leewayInSeconds(): int { return $this->leewayInSeconds; } }