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