Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / HelperContainer / Exception / WrongContainerClassException.php
1 <?php
2
3 /*
4  * This file is part of the Behat.
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\Behat\HelperContainer\Exception;
12
13 use InvalidArgumentException;
14
15 /**
16  * Represents an exception when provided class exists, but is not an acceptable as a container.
17  *
18  * @author Konstantin Kudryashov <ever.zet@gmail.com>
19  */
20 final class WrongContainerClassException extends InvalidArgumentException implements HelperContainerException
21 {
22     /**
23      * @var string
24      */
25     private $class;
26
27     /**
28      * Initializes exception.
29      *
30      * @param integer $message
31      * @param string  $class
32      */
33     public function __construct($message, $class)
34     {
35         $this->class = $class;
36
37         parent::__construct($message);
38     }
39
40     /**
41      * Returns not found classname.
42      *
43      * @return string
44      */
45     public function getClass()
46     {
47         return $this->class;
48     }
49 }