Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Call / Filter / CallFilter.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\Filter;
12
13 use Behat\Testwork\Call\Call;
14 use Behat\Testwork\Call\CallCenter;
15
16 /**
17  * Filters call before its being made and returns a new call.
18  *
19  * @see CallCenter
20  *
21  * @author Konstantin Kudryashov <ever.zet@gmail.com>
22  */
23 interface CallFilter
24 {
25     /**
26      * Checks if filter supports a call.
27      *
28      * @param Call $call
29      *
30      * @return Boolean
31      */
32     public function supportsCall(Call $call);
33
34     /**
35      * Filters a call and returns a new one.
36      *
37      * @param Call $call
38      *
39      * @return Call
40      */
41     public function filterCall(Call $call);
42 }