Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Call / Handler / CallHandler.php
1 <?php
2
3 /*
4  * This file is part of the Behat Testwork.
5  * (c) Konstantin Kudryashov <ever.zet@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
11 namespace Behat\Testwork\Call\Handler;
12
13 use Behat\Testwork\Call\Call;
14 use Behat\Testwork\Call\CallCenter;
15 use Behat\Testwork\Call\CallResult;
16
17 /**
18  * Handles calls and produces call results.
19  *
20  * @see CallCenter
21  *
22  * @author Konstantin Kudryashov <ever.zet@gmail.com>
23  */
24 interface CallHandler
25 {
26     /**
27      * Checks if handler supports call.
28      *
29      * @param Call $call
30      *
31      * @return Boolean
32      */
33     public function supportsCall(Call $call);
34
35     /**
36      * Handles call and returns call result.
37      *
38      * @param Call $call
39      *
40      * @return CallResult
41      */
42     public function handleCall(Call $call);
43 }