Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 55.56% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class MessageEvent extends ServerStartEvent |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $remote; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $message; |
||
28 | |||
29 | /** |
||
30 | * MessageEvent constructor. |
||
31 | * |
||
32 | * @param SocketInterface $socket |
||
33 | * @param string $remote |
||
34 | * @param string $message |
||
35 | */ |
||
36 | 4 | public function __construct(SocketInterface $socket, string $remote, string $message) |
|
37 | { |
||
38 | 4 | parent::__construct($socket); |
|
39 | 4 | $this->remote = $remote; |
|
40 | 4 | $this->message = $message; |
|
41 | 4 | } |
|
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getRemote(): string |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getMessage(): string |
||
59 |