1 | <?php |
||
21 | class InvalidHeaderException extends Exception |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $header; |
||
27 | |||
28 | /** |
||
29 | * @var mixed |
||
30 | */ |
||
31 | private $value; |
||
32 | |||
33 | /** |
||
34 | * @param mixed $value |
||
35 | */ |
||
36 | public function __construct(string $message, string $header, $value) |
||
43 | |||
44 | /** |
||
45 | * Returns the header parameter that caused the exception. |
||
46 | */ |
||
47 | public function getHeader(): string |
||
51 | |||
52 | /** |
||
53 | * Returns the header parameter value that caused the exception. |
||
54 | * |
||
55 | * @return mixed |
||
56 | */ |
||
57 | public function getValue() |
||
61 | } |
||
62 |