Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Exception / Stringer / ExceptionStringer.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\Exception\Stringer;
12
13 use Behat\Testwork\Exception\ExceptionPresenter;
14 use Exception;
15
16 /**
17  * Finds a best way to present as a string particular.
18  *
19  * @see ExceptionPresenter
20  *
21  * @author Konstantin Kudryashov <ever.zet@gmail.com>
22  */
23 interface ExceptionStringer
24 {
25     /**
26      * Checks if stringer supports provided exception.
27      *
28      * @param Exception $exception
29      *
30      * @return Boolean
31      */
32     public function supportsException(Exception $exception);
33
34     /**
35      * Strings provided exception.
36      *
37      * @param Exception $exception
38      * @param integer   $verbosity
39      *
40      * @return string
41      */
42     public function stringException(Exception $exception, $verbosity);
43 }