samuelwilliams /
PHP-DNS-SERVER
| 1 | <?php |
||
| 2 | |||
| 3 | /* |
||
| 4 | * This file is part of PHP DNS Server. |
||
| 5 | * |
||
| 6 | * (c) Yif Swery <[email protected]> |
||
| 7 | * |
||
| 8 | * For the full copyright and license information, please view the LICENSE |
||
| 9 | * file that was distributed with this source code. |
||
| 10 | */ |
||
| 11 | |||
| 12 | namespace yswery\DNS\Event; |
||
| 13 | |||
| 14 | use Symfony\Component\EventDispatcher\Event; |
||
| 15 | |||
| 16 | class ServerExceptionEvent extends Event |
||
|
0 ignored issues
–
show
Deprecated Code
introduced
by
Loading history...
|
|||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var \Exception |
||
| 20 | */ |
||
| 21 | private $exception; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * ExceptionEvent constructor. |
||
| 25 | * |
||
| 26 | * @param \Exception $exception |
||
| 27 | */ |
||
| 28 | 7 | public function __construct(\Exception $exception) |
|
| 29 | { |
||
| 30 | 7 | $this->exception = $exception; |
|
| 31 | 7 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return \Exception |
||
| 35 | */ |
||
| 36 | public function getException(): \Exception |
||
| 37 | { |
||
| 38 | return $this->exception; |
||
| 39 | } |
||
| 40 | } |
||
| 41 |