| 1 | <?php |
| 2 | |
| 3 | namespace Firebase\JWT; |
| 4 | |
| 5 | class ExpiredException extends \UnexpectedValueException implements JWTExceptionWithPayloadInterface |
| 6 | { |
| 7 | private object $payload; |
| 8 | |
| 9 | private ?int $timestamp = null; |
| 10 | |
| 11 | public function setPayload(object $payload): void |
| 12 | { |
| 13 | $this->payload = $payload; |
| 14 | } |
| 15 | |
| 16 | public function getPayload(): object |
| 17 | { |
| 18 | return $this->payload; |
| 19 | } |
| 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 | } |
| 30 | } |