| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,20 @@ |
| 1 |
+<?php |
|
| 2 |
+namespace Firebase\JWT; |
|
| 3 |
+ |
|
| 4 |
+interface JWTExceptionWithPayloadInterface |
|
| 5 |
+{
|
|
| 6 |
+ /** |
|
| 7 |
+ * Get the payload that caused this exception. |
|
| 8 |
+ * |
|
| 9 |
+ * @return object |
|
| 10 |
+ */ |
|
| 11 |
+ public function getPayload(): object; |
|
| 12 |
+ |
|
| 13 |
+ /** |
|
| 14 |
+ * Get the payload that caused this exception. |
|
| 15 |
+ * |
|
| 16 |
+ * @param object $payload |
|
| 17 |
+ * @return void |
|
| 18 |
+ */ |
|
| 19 |
+ public function setPayload(object $payload): void; |
|
| 20 |
+} |