4 * This file is part of the Behat Testwork.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Testwork\Call\Filter;
13 use Behat\Testwork\Call\CallCenter;
14 use Behat\Testwork\Call\CallResult;
17 * Filters call results and produces new ones.
21 * @author Konstantin Kudryashov <ever.zet@gmail.com>
23 interface ResultFilter
26 * Checks if filter supports call result.
28 * @param CallResult $result
32 public function supportsResult(CallResult $result);
35 * Filters call result and returns a new result.
37 * @param CallResult $result
41 public function filterResult(CallResult $result);