1 | <?php |
||
8 | class gwTypeExceptionInfo extends gwCoreExceptionInfo implements gwiExceptionInfo |
||
9 | { |
||
10 | /** |
||
11 | * @var mixed |
||
12 | */ |
||
13 | protected $value; |
||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $types; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $note; |
||
24 | |||
25 | /** |
||
26 | * Constructor. |
||
27 | * |
||
28 | * @param mixed $value the actual value that caused the exception |
||
29 | * @param array|string $types a list of legal types |
||
30 | * @param string $note an optional note |
||
31 | */ |
||
32 | public function __construct($value, $types, $note = '') |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | public function fetch() |
||
53 | } |
||
54 |