| 1 |
<?php |
| 2 |
|
| 3 |
namespace Dudlewebs\WPMCS\GCP\Firebase\JWT; |
| 4 |
|
| 5 |
class ExpiredException extends \UnexpectedValueException implements JWTExceptionWithPayloadInterface |
| 6 |
{ |
| 7 |
private object $payload; |
| 8 |
private ?int $timestamp = null; |
| 9 |
public function setPayload(object $payload) : void |
| 10 |
{ |
| 11 |
$this->payload = $payload; |
| 12 |
} |
| 13 |
public function getPayload() : object |
| 14 |
{ |
| 15 |
return $this->payload; |
| 16 |
} |
| 17 |
public function setTimestamp(int $timestamp) : void |
| 18 |
{ |
| 19 |
$this->timestamp = $timestamp; |
| 20 |
} |
| 21 |
public function getTimestamp() : ?int |
| 22 |
{ |
| 23 |
return $this->timestamp; |
| 24 |
} |
| 25 |
} |
| 26 |
|