Completed
Push — master ( 282f78...6dce89 )
by Sam
05:20
created

QueryReceiveEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getMessage() 0 3 1
1
<?php
2
/*
3
 * This file is part of PHP DNS Server.
4
 *
5
 * (c) Yif Swery <[email protected]>
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 yswery\DNS\Event;
12
13
use yswery\DNS\Message;
14
use Symfony\Component\EventDispatcher\Event;
15
16
class QueryReceiveEvent extends Event
17
{
18
    /**
19
     * @var Message
20
     */
21
    private $message;
22
23
    /**
24
     * QueryReceiveEvent constructor.
25
     *
26
     * @param Message $message
27
     */
28
    public function __construct(Message $message)
29
    {
30
        $this->message = $message;
31
    }
32
33
    /**
34
     * @return Message
35
     */
36
    public function getMessage(): Message
37
    {
38
        return $this->message;
39
    }
40
}
41