/vendor/phpspec/prophecy/src/Prophecy/Promise/PromiseInterface.php

https://bitbucket.org/alan_cordova/api-sb-map · PHP · 35 lines · 8 code · 4 blank · 23 comment · 0 complexity · 2953e6fabbc77033aeee7f0aa8ab0ed6 MD5 · raw file

  1. <?php
  2. /*
  3. * This file is part of the Prophecy.
  4. * (c) Konstantin Kudryashov <ever.zet@gmail.com>
  5. * Marcello Duarte <marcello.duarte@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Prophecy\Promise;
  11. use Prophecy\Prophecy\ObjectProphecy;
  12. use Prophecy\Prophecy\MethodProphecy;
  13. /**
  14. * Promise interface.
  15. * Promises are logical blocks, tied to `will...` keyword.
  16. *
  17. * @author Konstantin Kudryashov <ever.zet@gmail.com>
  18. */
  19. interface PromiseInterface
  20. {
  21. /**
  22. * Evaluates promise.
  23. *
  24. * @param array $args
  25. * @param ObjectProphecy $object
  26. * @param MethodProphecy $method
  27. *
  28. * @return mixed
  29. */
  30. public function execute(array $args, ObjectProphecy $object, MethodProphecy $method);
  31. }