PromisorInterface.php 249 B

12345678910111213141516
  1. <?php
  2. declare(strict_types=1);
  3. namespace GuzzleHttp\Promise;
  4. /**
  5. * Interface used with classes that return a promise.
  6. */
  7. interface PromisorInterface
  8. {
  9. /**
  10. * Returns a promise.
  11. */
  12. public function promise(): PromiseInterface;
  13. }