2026-03-30 14:54:57 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Firebase\JWT;
|
|
|
|
|
|
|
|
|
|
class ExpiredException extends \UnexpectedValueException implements JWTExceptionWithPayloadInterface
|
|
|
|
|
{
|
|
|
|
|
private object $payload;
|
|
|
|
|
|
2026-04-18 20:32:18 +07:00
|
|
|
private ?int $timestamp = null;
|
|
|
|
|
|
2026-03-30 14:54:57 +07:00
|
|
|
public function setPayload(object $payload): void
|
|
|
|
|
{
|
|
|
|
|
$this->payload = $payload;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getPayload(): object
|
|
|
|
|
{
|
|
|
|
|
return $this->payload;
|
|
|
|
|
}
|
2026-04-18 20:32:18 +07:00
|
|
|
|
|
|
|
|
public function setTimestamp(int $timestamp): void
|
|
|
|
|
{
|
|
|
|
|
$this->timestamp = $timestamp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getTimestamp(): ?int
|
|
|
|
|
{
|
|
|
|
|
return $this->timestamp;
|
|
|
|
|
}
|
2026-03-30 14:54:57 +07:00
|
|
|
}
|