| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,16 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+declare(strict_types=1); |
|
| 4 |
+ |
|
| 5 |
+namespace GuzzleHttp\Promise; |
|
| 6 |
+ |
|
| 7 |
+/** |
|
| 8 |
+ * Interface used with classes that return a promise. |
|
| 9 |
+ */ |
|
| 10 |
+interface PromisorInterface |
|
| 11 |
+{
|
|
| 12 |
+ /** |
|
| 13 |
+ * Returns a promise. |
|
| 14 |
+ */ |
|
| 15 |
+ public function promise(): PromiseInterface; |
|
| 16 |
+} |
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
- |
|
| 3 |
-namespace GuzzleHttp\Promise; |
|
| 4 |
- |
|
| 5 |
-/** |
|
| 6 |
- * Interface used with classes that return a promise. |
|
| 7 |
- */ |
|
| 8 |
-interface PromisorInterface |
|
| 9 |
-{
|
|
| 10 |
- /** |
|
| 11 |
- * Returns a promise. |
|
| 12 |
- * |
|
| 13 |
- * @return PromiseInterface |
|
| 14 |
- */ |
|
| 15 |
- public function promise(); |
|
| 16 |
-} |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,16 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+namespace GuzzleHttp\Promise; |
|
| 4 |
+ |
|
| 5 |
+/** |
|
| 6 |
+ * Interface used with classes that return a promise. |
|
| 7 |
+ */ |
|
| 8 |
+interface PromisorInterface |
|
| 9 |
+{
|
|
| 10 |
+ /** |
|
| 11 |
+ * Returns a promise. |
|
| 12 |
+ * |
|
| 13 |
+ * @return PromiseInterface |
|
| 14 |
+ */ |
|
| 15 |
+ public function promise(); |
|
| 16 |
+} |