PageRenderTime 13ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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