Skip to content

Commit 916864e

Browse files
authored
Update ExpiredException.php
1 parent 953b2c8 commit 916864e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/ExpiredException.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ class ExpiredException extends \UnexpectedValueException implements JWTException
66
{
77
private object $payload;
88

9+
private ?int $timestamp = null;
10+
911
public function setPayload(object $payload): void
1012
{
1113
$this->payload = $payload;
@@ -15,4 +17,14 @@ public function getPayload(): object
1517
{
1618
return $this->payload;
1719
}
20+
21+
public function setTimestamp(int $timestamp): void
22+
{
23+
$this->timestamp = $timestamp;
24+
}
25+
26+
public function getTimestamp(): ?int
27+
{
28+
return $this->timestamp;
29+
}
1830
}

0 commit comments

Comments
 (0)