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 | use yswery\DNS\Message; |
||
16 | |||
17 | class QueryReceiveEvent extends Event |
||
0 ignored issues
–
show
Deprecated Code
introduced
by
![]() |
|||
18 | { |
||
19 | /** |
||
20 | * @var Message |
||
21 | */ |
||
22 | private $message; |
||
23 | |||
24 | /** |
||
25 | * QueryReceiveEvent constructor. |
||
26 | * |
||
27 | * @param Message $message |
||
28 | */ |
||
29 | 7 | public function __construct(Message $message) |
|
30 | { |
||
31 | 7 | $this->message = $message; |
|
32 | 7 | } |
|
33 | |||
34 | /** |
||
35 | * @return Message |
||
36 | */ |
||
37 | public function getMessage(): Message |
||
38 | { |
||
39 | return $this->message; |
||
40 | } |
||
41 | } |
||
42 |